In-memory key/value store for novus-component.
This module is included by default when
npm installing the
Despite the fact that it was designed to be used by
novus-component, you can install
and use this module independently if so desired.
npm i novus-component-store-memory
Setting it up:
;const store = ;
Getting a key:
// MemoryStore.get(key, def = null)let value = store;// 'value' is false if there was no such key found
Setting a key:
// MemoryStore.set(key, value, override = true)store;
Copyright 2016 Michiel van der Velde.
This software is licensed under the MIT License