All Projects → silverbucket → node-redis-connection-pool

silverbucket / node-redis-connection-pool

Licence: other
A node.js connection manager for Redis

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to node-redis-connection-pool

redis client
a redis client supports cluster
Stars: ✭ 72 (+38.46%)
Mutual labels:  redis-client
pool
A generic C memory pool
Stars: ✭ 81 (+55.77%)
Mutual labels:  pool
billiards
billiards physics
Stars: ✭ 37 (-28.85%)
Mutual labels:  pool
XAsyncSockets
XAsyncSockets is an efficient Python/MicroPython library of managed asynchronous sockets.
Stars: ✭ 28 (-46.15%)
Mutual labels:  pool
redis-cpp
redis-cpp is a header-only library in C++17 for Redis (and C++11 backport)
Stars: ✭ 73 (+40.38%)
Mutual labels:  redis-client
JRediSearch
Java Client for RediSearch
Stars: ✭ 133 (+155.77%)
Mutual labels:  redis-client
zig-okredis
Zero-allocation Client for Redis 6+
Stars: ✭ 137 (+163.46%)
Mutual labels:  redis-client
node-screenlogic
Pentair ScreenLogic Javascript library using Node.JS
Stars: ✭ 38 (-26.92%)
Mutual labels:  pool
parallelizer
Simplifies the parallelization of function calls.
Stars: ✭ 62 (+19.23%)
Mutual labels:  pool
mysql-connection-pool-manager
This is a mySQL Connection Pool Manager wrapper powered by mysqljs/mysql and allows for intelligent management & load balancing mysql connection pools.
Stars: ✭ 15 (-71.15%)
Mutual labels:  pool
retcl
Tcl client library for Redis
Stars: ✭ 20 (-61.54%)
Mutual labels:  redis-client
vscode-redis
Redis Client in VSCode!
Stars: ✭ 63 (+21.15%)
Mutual labels:  redis-client
xdagj
XDAGJ is an implementation of XDAG in Java. https://xdag.io
Stars: ✭ 81 (+55.77%)
Mutual labels:  pool
open-grin-pool
Open-sourcing pool for grin. Easy to depoly and keep KISS in design. Avaliable to epic (epicash, a grin forkcoin) too.
Stars: ✭ 19 (-63.46%)
Mutual labels:  pool
redis
efficient client ⚡️
Stars: ✭ 70 (+34.62%)
Mutual labels:  redis-client
pool-reference
Reference python implementation of Chia pool operations for pool operators
Stars: ✭ 452 (+769.23%)
Mutual labels:  pool
swift-nio-redis
A high performance Redis protocol (RESP) implementation for SwiftNIO
Stars: ✭ 27 (-48.08%)
Mutual labels:  redis-client
goroutine-pool
A simple goroutine pool which can create and release goroutine dynamically, inspired by fasthttp.
Stars: ✭ 31 (-40.38%)
Mutual labels:  pool
SmartRedis
SmartSim Infrastructure Library Clients.
Stars: ✭ 37 (-28.85%)
Mutual labels:  redis-client
cache redis node
Exemplo de utilização de Cache, com Redis, Mongo, nodejs
Stars: ✭ 30 (-42.31%)
Mutual labels:  redis-client

redis-connection-pool

A node.js connection pool for Redis.

https://silverbucket.github.io/redis-connection-pool

Build Status license downloads

About

A high-level redis connection pooling object. It manages a number of connections in a pool, using them as needed and keeping all aspects of releasing active connections internal to the object.

Installation

npm install redis-connection-pool

Usage

import redisPoolFactory from 'redis-connection-pool';
const redisPool = await redisPoolFactory('myRedisPool', {
    max_clients: 5, // default
    redis: {
      url: 'redis://localhost:6379'
    }
  });


await redisPool.set('test-key', 'foobar');
const foo = await redisPool.get('test-key');
// returns 'foobar'

Or you can create a pool instance directly

import RedisConnectionPool from 'redis-connection-pool';
const redisPool = new RedisConnectionPool();
await redisPool.init();

When you are done

redisPool.shutdown();

Implemented Redis methods

  • blpop
  • brpop
  • del
  • expire
  • get
  • hdel
  • hget
  • hgetall
  • hset
  • incr
  • keys
  • lpush
  • rpush
  • sendCommand
  • set
  • ttl

Additional methods

  • init
  • shutdown

API Documentation

For the full documentation on the RedisConnectionPool class, see https://silverbucket.github.io/redis-connection-pool/classes/RedisConnectionPool.html

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].