Redis常见操作,Redis配置文件

Redis常见操作 keys * //取出所有key keys my* //模糊匹配 exists name //有name键 返回1 ,否则返回0; del key1 // 删除一个key //成功返回1 ,否则返回0; EXPIRE key1 100 //设置key1 100s后过期 ttl key // 查看键 还有多长时间过期,单位是s,当 key 不存在时,返回 -2
相关文章
相关标签/搜索