摘要: 哨兵、复制、事务、集群、持久化 redis主要有哪些功能 哨兵和复制(sentinel and replication): sentinel可以管理多个redis服务器,它提供监控、提醒、故障转移等功能 replication则是可以让一个redis服务器拥有一个或多个配备服务器 redis也是利用 阅读全文
posted @ 2022-04-01 18:17 专职 阅读(179) 评论(0) 推荐(0) 编辑
摘要: redis常用命令 keys 键命令 keys 查询所有key type 查找key的类型 del 删除一个key expire 给key设置过期时间 ttl 查询key还有多长时间过期 exists 查询key是否存在 string 字符串命令 set 设置一个字符串 setex 设置一个带过期时 阅读全文
posted @ 2022-04-01 18:16 专职 阅读(20) 评论(0) 推荐(0) 编辑