Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 472 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 472 Bytes

redis-pool

redis 连接池

Usage

npm install @kin-common/redis-pool

const RedisPool = require('@kin-common/redis-pool');

const redisPool = new RedisPool(redisconf, poolconf);

- redisConf

- poolConf

redisPool.getClient()

从连接池中取出 client

redisPool.releaseClient(client)

client 归还连接池