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.4.0 to 1.5.0

36

doc/javascript/searchdata.js

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

},
"Files": {
"General": {
"Symbols": false,

@@ -38,19 +38,19 @@ "Numbers": false,

"B": false,
"C": false,
"D": false,
"E": false,
"F": false,
"C": true,
"D": true,
"E": true,
"F": true,
"G": false,
"H": false,
"I": false,
"J": false,
"J": true,
"K": false,
"L": false,
"M": false,
"M": true,
"N": false,
"O": false,
"O": true,
"P": false,
"Q": false,
"R": true,
"S": false,
"S": true,
"T": false,

@@ -64,3 +64,3 @@ "U": false,

},
"General": {
"Files": {
"Symbols": false,

@@ -70,19 +70,19 @@ "Numbers": false,

"B": false,
"C": true,
"D": true,
"E": true,
"F": true,
"C": false,
"D": false,
"E": false,
"F": false,
"G": false,
"H": false,
"I": false,
"J": true,
"J": false,
"K": false,
"L": false,
"M": true,
"M": false,
"N": false,
"O": true,
"O": false,
"P": false,
"Q": false,
"R": true,
"S": true,
"S": false,
"T": false,

@@ -89,0 +89,0 @@ "U": false,

{
"name": "redis-connection-pool",
"version": "1.4.0",
"version": "1.5.0",
"description": "a redis client connection pool",

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

"generic-pool": "^2.2.0",
"hiredis": "^0.4.1",
"hiredis": "^0.5.0",
"q": "^1.4.1",
"redis": "^1.0.0"
"redis": "^2.6.2"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -7,3 +7,2 @@ node-redis-connection-pool

[![Build Status](http://img.shields.io/travis/silverbucket/node-redis-connection-pool.svg?style=flat)](http://travis-ci.org/silverbucket/node-redis-connection-pool)
[![Code Climate](http://img.shields.io/codeclimate/github/silverbucket/node-redis-connection-pool.svg?style=flat)](https://codeclimate.com/github/silverbucket/node-redis-connection-pool)
[![license](https://img.shields.io/npm/l/redis-connection-pool.svg?style=flat)](https://npmjs.org/package/redis-connection-pool)

@@ -82,2 +81,7 @@ [![downloads](http://img.shields.io/npm/dm/redis-connection-pool.svg?style=flat)](https://npmjs.org/package/redis-connection-pool)

* **hdel**
```javascript
hdel(key, [fields], callback)
```
* **brpop**

@@ -84,0 +88,0 @@ ```javascript

@@ -231,2 +231,18 @@ /**

/**
* Function: hdel
*
* Execute a redis HDEL command
*
* Parameters:
*
* key - (string) - The key of the value you wish to delete
* fields - [string] - The field names to be deleted
* cb - (function) - Callback to be executed on completion
*
*/
RedisConnectionPool.prototype.hdel = function (key, fields, cb) {
redisSingle.apply(this, ['hdel', key, fields, cb]);
};
/**
* Function: hset

@@ -248,2 +264,4 @@ *

/**

@@ -405,4 +423,21 @@ * Function: hget

/**
* Function: send_command
*
* Sends an explicit command to the redis server. Helpful for new commands in redis
* that aren't supported yet by this JS API.
*
* Parameters:
*
* command_name - (string) - The redis command to execute
* args - (array) - The arguments to the redis command
* cb - (function) - Callback to be executed on completion
*
*/
RedisConnectionPool.prototype.send_command = function (command_name, args, cb) {
redisSingle.apply(this, ['send_command', command_name, args, cb]);
};
function redisSingle (funcName, key, val, cb) {

@@ -412,5 +447,14 @@ var pool = this.pool;

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

@@ -417,0 +461,0 @@ pool.release(client);

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