Socket
Socket
Sign inDemoInstall

redis-connection-pool

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-connection-pool - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

32

doc/javascript/searchdata.js

@@ -32,18 +32,18 @@ var indexSectionsWithContent = {

},
"Functions": {
"General": {
"Symbols": false,
"Numbers": false,
"A": false,
"B": true,
"B": false,
"C": true,
"D": true,
"E": true,
"F": false,
"G": true,
"H": true,
"F": true,
"G": false,
"H": false,
"I": false,
"J": false,
"J": true,
"K": false,
"L": true,
"M": false,
"L": false,
"M": true,
"N": false,

@@ -63,18 +63,18 @@ "O": true,

},
"General": {
"Functions": {
"Symbols": false,
"Numbers": false,
"A": false,
"B": false,
"B": true,
"C": true,
"D": true,
"E": true,
"F": true,
"G": false,
"H": false,
"F": false,
"G": true,
"H": true,
"I": false,
"J": true,
"J": false,
"K": false,
"L": false,
"M": true,
"L": true,
"M": false,
"N": false,

@@ -81,0 +81,0 @@ "O": true,

{
"name": "redis-connection-pool",
"version": "1.2.0",
"version": "1.3.0",
"description": "a redis client connection pool",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -58,5 +58,10 @@ node-redis-connection-pool

```javascript
expire(key, value)
expire(key, value, callback)
```
* **del**
```javascript
del(key, callback)
```
* **hget**

@@ -63,0 +68,0 @@ ```javascript

/**
* redis-connection-pool.js
*
* copyright 2012-2015 Nick Jennings (https://github.com/silverbucket)
* copyright 2012-2016 Nick Jennings (https://github.com/silverbucket)
*

@@ -166,4 +166,4 @@ * licensed under the MIT license.

*/
RedisConnectionPool.prototype.expire = function (key, data) {
redisSingle.apply(this, ['expire', key, data]);
RedisConnectionPool.prototype.expire = function (key, data, cb) {
redisSingle.apply(this, ['expire', key, data, cb]);
};

@@ -212,4 +212,4 @@

*/
RedisConnectionPool.prototype.del = function (key) {
redisSingle.apply(this, ['del', key]);
RedisConnectionPool.prototype.del = function (key, cb) {
redisSingle.apply(this, ['del', key, cb]);
};

@@ -378,12 +378,21 @@

function redisSingle (funcName, key, val) {
function redisSingle (funcName, key, val, cb) {
var pool = this.pool;
if (typeof val === 'function') {
cb = val;
}
pool.acquire(function (err, client) {
if (val) {
client[funcName](key, val, function () {
client[funcName](key, val, function (err, reply) {
pool.release(client);
if (typeof cb === 'function') {
cb(err, reply);
}
});
} else {
client[funcName](key, function () {
client[funcName](key, function (err, reply) {
pool.release(client);
if (typeof cb === 'function') {
cb(err, reply);
}
});

@@ -390,0 +399,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc