Socket
Socket
Sign inDemoInstall

cache-manager-memory-store

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cache-manager-memory-store

Extremely simple in-memory store for node-cache-manager. Primarily used for testing purposes.


Version published
Weekly downloads
749
decreased by-32.09%
Maintainers
1
Install size
130 kB
Created
Weekly downloads
 

Readme

Source

node-cache-manager-memory-store

Note: node-cache-manager already has a built-in memory store as a default when no stores are used.

Simple in-memory store for node-cache-manager. Mainly used for unit testing purposes.

Does not do anything special other than maintain an in-memory object, getting and setting values to it.

TTL is not supported. Tests contain TTL but it's to only make sure the cache manager interface is implemented correctly.

Install

npm i cache-manager-memory-store --save

Using this store

import MemoryStore from 'cache-manager-memory-store'
import cacheManager from 'cache-manager'

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

Run tests with:

npm run test

Keywords

FAQs

Last updated on 16 Jun 2017

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