UNPKG

@feathers-plus/cache

Version:

LRU (least recently used) cache. Compatible with feathers-hooks-common cache hooks and BatchLoader.

10 lines (6 loc) 239 B
const LruCache = require('lru-cache'); LruCache.prototype.delete = LruCache.prototype.del; LruCache.prototype.clear = LruCache.prototype.reset; module.exports = function DataLoaderCacheLru (options) { return new LruCache(options); };