Mixin: memory

memory

This mixin implements a volatile storage feature which stores items on memory. Use namespace to share the storage across KagoDB instances in the same process.
Source:

Example

var opts = {
  storage: 'memory',
  namespace: 'myspace'
};

var collection = new KagoDB(opts);

collection.read('foo', function(err, item){
  console.log(item);
});