1.0.2 • Published 3 years ago

@gibme/lazy-storage v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Simple In-Memory KVS Storage System Wrapped around Node-Cache

Accepts arbitrary keys and values as it will JSON encode all keys and values before storing and will parse the JSON when retrieving.

Documentation

https://gibme-npm.github.io/lazy-storage/

Sample Code

import LazyStorage from '@gibme/lazy-storage';

const storage = new LazyStorage();

{
    storage.set({ some: 'key' }, { some: 'value' });

    const data = storage.get({ some: 'key' });

    if (data) {
        console.log(data);
        
        storage.del({ some: 'key' });
    }
}
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago