In-memory key/value store
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
LICENSE
README.md
package.json

README.md

A Naive in Memory Key/Value Storage

In a nutshell

  • Key/Value storage
  • Useable in Node.js
  • Useable in the browser
  • Includes map() method

Install

npm install memstore

Synopsis

When using from Node:

var memstore = require('memstore').Store;

var store = new memstore();
store.set('abc', 123);

store.get('abc'); // 123

var keys = store.keys(); // [ 'abc' ]

store.delete('abc');

store.get('abc'); // undefined

store.flush();

store.map(function (value, key, obj) { } /* , thisp */);