🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cache-manager-node-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager-node-cache

A memory cache store for cache-manager using node-cache.

1.1.1
latest
Source
npm
Version published
Weekly downloads
107
4.9%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

node-cache-manager

FAQs

Package last updated on 31 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts