1.0.5 • Published 8 months ago

alemon-redis v1.0.5

Weekly downloads
-
License
GPL-2.0
Repository
-
Last release
8 months ago

redis 链接

安装

npm install alemon-redis

使用示例

import { createRedis } from "alemon-redis";
// 不传入配置地址,默认读取config/redis.yaml
const redisA = createRedis();
// 传入配置地址
const redisB = createRedis("config/my/redis.yaml");
// 传入参数
const redisC = createRedis({
  host: "127.0.0.1",
  port: 6379,
  password: "",
  db: 1,
});
// 实例可以创建多个,默认使用数据库1
1.0.2

9 months ago

1.0.1

11 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

9 months ago

1.0.0

11 months ago