Skip to main content

数据

info

Redis配置及调用

alemon.config.yaml
redis:
host: 'localhost'
port: 6379
password: ''
db: 0
src/index.ts
import { getIoRedis } from 'alemonjs'
const ioRedis = getIoRedis()
// ioRedis.set("alemonjs:user","xxx")