Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-manager-memory-store

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by586.14%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 16 Jun 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc