README
Redis-ORM 模型
方法
参数:
- options | object
- options.env | string
- options.logs | function
- options.settings | array
- options | object
执行:==> 创建连接池 ==> 创建操作模型
返回:
result | object
result.set | function | set 类型
- result.set.Rdel | function | 删除
- result.set.Rget | function | 获取
- result.set.Rsetnx | function | 获取当前
- result.set.Rexpire | function | 设置失效时间
- result.set.Rincrby | function | 自增
- result.set.Rset | function | 插入
result.hash | function | hash 类型
- result.hash.RHdel | function | 删除
- result.hash.RHget | function | 获取
- result.hash.RHset | function | 插入
- result.hash.RHincrby | function | 自增
result.list | function | list 类型
- result.list.RLPop | function | 截断尾列
- result.list.RLLen | function | 获取长度
- result.list.RLPush | function | 尾列推送