Gathering detailed insights and metrics for @keyv/memcache
Gathering detailed insights and metrics for @keyv/memcache
Gathering detailed insights and metrics for @keyv/memcache
Gathering detailed insights and metrics for @keyv/memcache
Simple key-value storage with support for multiple backends
npm install @keyv/memcache
Typescript
Module System
Node Version
NPM Version
TypeScript (99.28%)
Shell (0.32%)
CSS (0.27%)
JavaScript (0.12%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,930 Stars
1,659 Commits
179 Forks
20 Watchers
2 Branches
75 Contributors
Updated on Jul 13, 2025
Latest Version
2.0.2
Package Id
@keyv/memcache@2.0.2
Unpacked Size
17.19 kB
Size
4.86 kB
File Count
7
NPM Version
11.4.1
Node Version
20.17.0
Published on
Jun 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
Memcache storage adapter for Keyv
1npm install --save @keyv/memcache
This package does not support compression. If you need compression, please use the @keyv/redis
or another service package instead.
1import Keyv from 'keyv'; 2import KeyvMemcache from '@keyv/memcache'; 3 4const memcache = new KeyvMemcache('user:pass@localhost:11211'); 5const keyv = new Keyv({ store: memcache }); 6 7//set 8await keyv.set("foo","bar", 6000) //Expiring time is optional 9 10//get 11const obj = await keyv.get("foo"); 12 13//delete 14await keyv.delete("foo"); 15 16//clear 17await keyv.clear(); 18
1import Keyv from 'keyv'; 2import KeyvMemcache from '@keyv/memcache'; 3 4const memcache = new KeyvMemcache('user:pass@localhost:11211'); 5const keyv1 = new Keyv({ store: memcache, namespace: "namespace1" }); 6const keyv2 = new Keyv({ store: memcache, namespace: "namespace2" }); 7 8//set 9await keyv1.set("foo","bar1", 6000) //Expiring time is optional 10await keyv2.set("foo","bar2", 6000) //Expiring time is optional 11 12//get 13const obj1 = await keyv1.get("foo"); //will return bar1 14const obj2 = await keyv2.get("foo"); //will return bar2 15
1 2//set the server to the correct address and port 3const server = "localhost:11211" 4 5const Keyv = require("keyv"); 6const KeyvMemcache = require("@keyv/memcache"); 7 8const memcache = new KeyvMemcache(server); 9const keyv = new Keyv({ store: memcache});
1 2//best practice is to not hard code your config in code. 3const user = ""; 4const pass = ""; 5const server = "XXX.XXX.XXX.memcachier.com:11211" 6 7const Keyv = require("keyv"); 8const KeyvMemcache = require("@keyv/memcache"); 9 10const memcache = new KeyvMemcache(user +":"+ pass +"@"+ server); 11const keyv = new Keyv({ store: memcache}); 12
Protocol
to memcachedendpoint
(the server) and place it into your code:1 2//best practice is to not hard code your config in code. 3const user = ""; 4const pass = ""; 5const server = "XXX.XXX.XXX.XXX.cloud.redislabs.com:XXX" 6 7const Keyv = require("keyv"); 8const KeyvMemcache = require("@keyv/memcache"); 9 10const memcache = new KeyvMemcache(user +":"+ pass +"@"+ server); 11const keyv = new Keyv({ store: memcache}); 12
1import Keyv from 'keyv'; 2import KeyvMemcache from '@keyv/memcache'; 3 4const memcache = new KeyvMemcache("insert the internal google memcached discovery endpoint"); 5const keyv = new Keyv({ store: memcache}); 6
No vulnerabilities found.
Reason
30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More