【发布时间】:2018-04-04 18:52:33
【问题描述】:
我正在使用 redisson java client 在 Redis 中存储键和值。 示例如下
RMapCache<String, Integer> mapCache = redisson.getMapCache("test");
// with ttl = 10 seconds
Integer prevValue = mapCache.put("1", 10, 10, TimeUnit.SECONDS);
当我在 mapCahce 上做 get 时,有没有办法获得密钥的剩余 ttl?
【问题讨论】: