How to use the mnemonist/lru-map function in mnemonist

To help you get started, we’ve selected a few mnemonist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github terascope / teraslice / packages / teraslice-state-storage / src / cached-state-storage / index.ts View on Github external
constructor(config: CacheConfig) {
        super();
        this._cache = new LRUMap(config.cache_size);
        // @ts-ignore
        this._cache.items = new BigMap(config.max_big_map_size);
    }

mnemonist

Curated collection of data structures for the JavaScript/TypeScript.

MIT
Latest version published 8 months ago

Package Health Score

76 / 100
Full package analysis