An open API service indexing awesome lists of open source software.

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

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/)