ImStore
Immutable javascript in-memory store
Why?
Because of this
var store = require('some-mutable-store');
var key = 'xxx';
var value = {a: 'b', cd: [1, 23]};
store.set(key, value);
var getValue = store.get(key);
getValue.a = ['b'];
getValue.cd = [];
getValue.c = 2
console.log(store.get(key));
Usage
Install via npm
$ npm install imstore
API is simple and straightforward:
var imstore = require('imstore');
var store = imstore();
store.set(key, value);
store.put(key, value);
store.get(key);
store.delete(key);
store.keys();
store.clear();
store.flush();
store.reset();
License
MIT