1.1.1 • Published 3 years ago

cache-manager-node-cache v1.1.1

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

node-cache-manager-node-cache

Adds node-cache store for node-cache-manager. Replaces the built-in LRU memory store with a memory store which supports TTL and enables usaged of refreshThreshold.

Install

npm i cache-manager-node-cache --save

Using this store

import NodeCacheStore from 'cache-manager-node-cache'
import cacheManager from 'cache-manager'

let memoryCache = cacheManager.caching({
    store: NodeCacheStore
})

Run tests with:

npm run test