Socket
Socket
Sign inDemoInstall

@repositories/redis

Package Overview
Dependencies
13
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

13

index.js

@@ -7,2 +7,3 @@

const uuid = require('uuid');
const noop = () => {};

@@ -21,9 +22,9 @@ class RedisRepository {

clear(cb) {
this.client.del(this.collection, err => {
if (err && cb) {
cb(err);
const self = this;
cb = cb || noop;
self.client.keys(`${self.collection}|*`, (err, res) => {
if (err) {
return cb(err);
}
if (cb) {
cb(null, true);
}
return asyncMap(res, (key, cb) => self.client.del(key, cb), cb);
});

@@ -30,0 +31,0 @@ }

{
"name": "@repositories/redis",
"version": "0.0.1",
"version": "0.0.2",
"description": "Generic IRepository implementation for Redis",

@@ -31,2 +31,3 @@ "homepage": "",

"dependencies": {
"async.map": "^0.5.2",
"auto-bind": "1.1.0",

@@ -33,0 +34,0 @@ "uuid": "3.1.0"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc