Socket
Socket
Sign inDemoInstall

egg-multi-cache

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    egg-multi-cache

Cache manager provided by node-cache-manager


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
479 kB
Created
Weekly downloads
 

Readme

Source

egg-multi-cache

NPM version build status Test coverage David deps Known Vulnerabilities npm download

node-cache-manager features a built-in memory cache (using node-lru-cache), with the standard functions you'd expect in most caches: ` set(key, val, {ttl: ttl}) // * see note below wrap(key, function, {ttl: ttl}) get(key) del(key)

// * Note that depending on the underlying store, you may be able to pass the // ttl as the third param, like this: set(key, val, ttl) // ... or pass no ttl at all: set(key, val)`

Install

$ npm i egg-multi-cache --save

Usage

// {app_root}/config/plugin.js
exports.multiCache = {
  enable: true,
  package: 'egg-multi-cache',
};

Configuration

// {app_root}/config/config.default.js
exports.multiCache = {
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

FAQs

Last updated on 25 Jul 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc