Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 626 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 626 Bytes

redis-client

redis 常用方法封装

Usage

npm install @kin-common/redis-client

const {pool, set, selectDB} = require('@kin-common/redis-client');

// 设置redis连接信息
pool.setConfig(redisConf, poolConf);

// 使用

set(12,'key', 'hello world');
// 等价于
const {set} = selectDB(12);

set('key', 'hello world')

扩展(todo)