cache-manager-memory-store
Extremely simple in-memory store for node-cache-manager. Primarily used for testing purposes.
Last updated 3 years ago by theo.gravity .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cache-manager-memory-store 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

5 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 3
Last Month 10
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |