
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
cache-manager-memcached-store
Advanced tools
The Memcached store for the node-cache-manager
Module can use different compatible memcache clients as the underlying memcache library:
Install one of the memcached clients from above and cache-manager-memcached-store
npm i memcache-pp --save
npm i cache-manager-memcached-store --save
Some of the project scaffolding and test/comments are lifted from node-cache-manager-redis
Till version 3.0.0 cache-manager-memcached-store
uses memcache-plus
as the underlying memcached library.
Newer versions allow to choose any compatible library by passing it's constructor in a driver option. See example below.
const Memcache = require('memcache-pp')
const cacheManager = require('cache-manager')
const memcachedStore = require('cache-manager-memcached-store')
const memcachedCache = cacheManager.caching({
store: memcachedStore,
driver: Memcache,
// http://memcache-plus.com/initialization.html - see options
options: {
hosts: ['127.0.0.1:11211']
}
})
const ttl = 30
// Compression must be manually set - see memcached-plus documentation
// The key must always be a string
// http://memcache-plus.com/set.html
memcachedCache.set('foo', 'bar', ttl, function(err) {
if (err) {
throw err
}
// http://memcache-plus.com/get.html
memcachedCache.get('foo', function(err, result) {
console.log(result)
// >> 'bar'
memcachedCache.del('foo', function(err) {})
})
})
FAQs
memcached impl for cache-manager
The npm package cache-manager-memcached-store receives a total of 4,688 weekly downloads. As such, cache-manager-memcached-store popularity was classified as popular.
We found that cache-manager-memcached-store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.