https://github.com/ruffrey/vardb
An embeddable, fast, NoSQL, in-memory datastore for javascript applications - now available for browser and node
https://github.com/ruffrey/vardb
Last synced: 4 months ago
JSON representation
An embeddable, fast, NoSQL, in-memory datastore for javascript applications - now available for browser and node
- Host: GitHub
- URL: https://github.com/ruffrey/vardb
- Owner: ruffrey
- License: other
- Created: 2015-07-14T22:01:13.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T13:21:27.000Z (almost 11 years ago)
- Last Synced: 2025-11-19T15:42:55.408Z (7 months ago)
- Homepage:
- Size: 180 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vardb
An embeddable in-memory datastore for javascript applications - now available for the browser and Node.js. It is a great alternative to Redis or other in-memory stores.
**vardb** has a unique synchronous or asynchronous IO implementation for maximum performance and usability in javascript environments.
# Getting started
It's easy to get started building with **vardb**.
Just use the `var` keyword:
### Lists
```javascript
// synchronous
var myStore = [];
myStore.push('a string');
// asynchronous
var myStore = [];
setTimeout(function () {
myStore.push('a string');
});
```
### Hashes / object store
```javascript
// synchronous
var myStore = {};
myStore.something = 'a string';
// asynchronous
var myStore = {};
setTimeout(function () {
myStore.something = 'a string';
});
```
# Other notes
- as you can see this is not a datastore
# License
[WTFPL](http://www.wtfpl.net/)