ic

immutable-cache

Immutable.js enabled caching

Showing:

Popularity

Downloads/wk

96

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

16.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Immutable Cache

Configurable cache, based on immutable.js.

Example

import {Cache} from 'immutable-cache';

let cache = new Cache({maxSize: 100});

// cache key 'key' with value 'value'
cache = cache.set('key', 'value');

// check if key is cached
cache.has('key'); // true
cache.has('other-key'); // false

cache.get('key'); // 'value'
cache.get('other-key'); // undefined

Options

NameDescription
maxSizemaximum number of keys stored in cache

License

Immutable-Cache is freely distributable under the terms of the MIT license.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100