- setex 命令可以设置值并且设置value String
setex key 秒数 value
setex b 1000 110 设置b的值为110 过期时间为1000秒
get b 查看key设置的值
ttl b 查看key还有多久过期
spring-boot 整合 redis 常用的缓存操作https://www.cnblogs.com/wusiwee/p/10418379.html
spring-boot 整合 redis 常用的缓存操作https://www.cnblogs.com/wusiwee/p/10418379.html