track-server-cache-lru-cache
v0.0.4
Published
LRU Cache for track-server.
Downloads
1
Readme
TrackServerCacheLRUCache
LRU Cache for track-server.
Installation
npm
npm install track-server-cache-lru-cache
Usage
const Config = require('track-server-renderer/lib/config');
const LRUCache = require('track-server-cache-lru-cache');
Config.configure((c) => {
c.cache = new LRUCache({max: 100, maxAge: 30 * 60 * 1000});
});