Skip to content

NOT YET BENCHMARKED OR IN PRODUCTION! @grundstein/mem-store. minimal non-persistant in-process key -> value store for nodejs.

License

Notifications You must be signed in to change notification settings

grundstein/mem-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@grundstein/mem-store

WIP. NOT IN PRODUCTION YET!

minimal, memory only, key -> value store for nodejs.

installation

npm i @grundstein/mem-store

usage

import memStore from '@grundstein/mem-store'

const data = {
  initial: 'data',
}

const store = memStore(data)

store.get('initial') // 'data'

store.set('key', 'value')

store.get('key') // 'value'

store.set('', '') // error, error.code === 'E_KEY_EMPTY'

store.set('key', '') // no error. value of store.key is ''.

store.set(undefined, [23]) // error. error.code === 'E_KEY_TYPE'

About

NOT YET BENCHMARKED OR IN PRODUCTION! @grundstein/mem-store. minimal non-persistant in-process key -> value store for nodejs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published