public final class RedisUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isUnlinkAvailable(org.springframework.data.redis.core.RedisOperations<?,?> redisOperations)
Perform an
INFO command on the provided RedisOperations to check
the Redis server version to be sure that UNLINK is available or not. |
public static boolean isUnlinkAvailable(org.springframework.data.redis.core.RedisOperations<?,?> redisOperations)
INFO
command on the provided RedisOperations
to check
the Redis server version to be sure that UNLINK
is available or not.redisOperations
- the RedisOperations
to perform INFO
command.UNLINK
Redis command is available or not.java.lang.IllegalStateException
- when INFO
returns null from the Redis.