java - Are there any ways to check whether a key exists with RedisTemplate? -
are there ways check whether key exists redistemplate? or in other words, there equivalent of redis exists command in redistemplate api?
yes, can use public boolean haskey(k key).
you can search exists in redistemplate javadoc
wiki
Comments
Post a Comment