RedisTemplate如何检查一个key是否存在?

return getRedisTemplate().hasKey(key);

猜你喜欢

转载自www.cnblogs.com/songanwei/p/9274348.html