System.out.println("设置 key001的过期时间为5秒:"+jedis.expire("key001", 5));
System.out.println("移除key001的生存时间:"+jedis.persist("key001"));
System.out.println("查看key001的剩余生存时间:"+jedis.ttl("key001"));
原文地址:https://www.cnblogs.com/jiangtao1218/p/9350948.html
时间: 2024-11-05 11:45:11