Lil*_*ily 4 java redis spring-data-redis
有什么方法可以检查RedisTemplate是否存在密钥吗?或者换句话说,existsRedisTemplate API中是否有等效的Redis 命令?
exists
Sol*_*olo 7
是的,您可以使用public Boolean hasKey(K key)。
public Boolean hasKey(K key)
您可以搜索redisTemplate javadoc中是否存在
归档时间:
8 年,2 月 前
查看次数:
4698 次
最近记录: