Gathering detailed insights and metrics for rcc-ioredis-mock-adapter
Gathering detailed insights and metrics for rcc-ioredis-mock-adapter
Gathering detailed insights and metrics for rcc-ioredis-mock-adapter
Gathering detailed insights and metrics for rcc-ioredis-mock-adapter
Wraps and adapts the 'ioredis-mock' module & its Redis client instances to be used with the 'redis-client-cache' module.
npm install rcc-ioredis-mock-adapter
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
14 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jun 22, 2018
Latest Version
1.0.12
Package Id
rcc-ioredis-mock-adapter@1.0.12
Unpacked Size
22.44 kB
Size
7.64 kB
File Count
5
NPM Version
5.6.0
Node Version
8.10.0
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
Wraps and adapts the 'ioredis-mock' module and its Redis client instances to be used with the 'redis-client-cache' module
Main module:
This module is exported as a Node.js module.
Using npm:
1$ npm i --save-dev rcc-ioredis-mock-adapter
rcc-ioredis-mock-adapter
module1// Get the ioredis-mock adapter 2const redis = require('rcc-ioredis-mock-adapter'); 3assert(redis); 4 5// Create a redis client using the redis adapter 6const redisClientOptions = {host: '127.0.0.1', port: 6379, string_number: true}; 7const redisClient = redis.createClient(redisClientOptions); 8assert(redisClient); 9 10// Get the host & port of the redis client 11const [host, port] = redisClient.resolveHostAndPort(); 12assert(host === '127.0.0.1'); 13assert(port === 6379); 14 15// Check if the redis client is closing or not 16const closing = redisClient.isClosing(); 17assert(!closing); 18 19// Set and get a value for a key using the underlying `ioredis-mock` module's `Redis` client instance's methods 20redisClient.set('KEY', 'VALUE', (err, res) => { 21 if (!err) { 22 console.log(res); 23 redisClient.get('KEY', (err, value) => { 24 if (!err) { 25 assert(value === 'VALUE'); 26 } 27 }); 28 } 29})
This module's unit tests were developed with and must be run with tape. The unit tests have been tested on Node.js v6.10.3.
See the package source for more details.
See CHANGES.md
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
9 existing vulnerabilities detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
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