Package com.axelor.cache.redisson
Class RedissonUtils
java.lang.Object
com.axelor.cache.redisson.RedissonUtils
Redisson utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<InetSocketAddress> getRedisAddresses(org.redisson.api.RedissonClient redisson) static VersiongetRedisVersion(org.redisson.api.RedissonClient redisson) Returns the version of the Redis server that the given Redisson client is configured to.getValkeyVersion(org.redisson.api.RedissonClient redisson) Returns the version of the Valkey server that the given Redisson client is configured to.static booleanhasCommand(org.redisson.api.RedissonClient redisson, String command) static booleanhasHashFieldExpiration(org.redisson.api.RedissonClient redisson)
-
Method Details
-
getRedisAddresses
-
getRedisVersion
Returns the version of the Redis server that the given Redisson client is configured to.If the Redisson client is configured to a cluster, this returns the minimum version of all the Redis servers.
This relies on redis_version server info that is present on both Redis and Valkey.
- Parameters:
redisson-- Returns:
- the version of the Redis server
-
getValkeyVersion
Returns the version of the Valkey server that the given Redisson client is configured to.If the Redisson client is configured to a cluster, this returns the minimum version of all the Valkey servers.
This relies on valkey_version server info that is present on Valkey only.
- Parameters:
redisson-- Returns:
- the optional version of the Valkey server
-
hasCommand
-
hasHashFieldExpiration
public static boolean hasHashFieldExpiration(org.redisson.api.RedissonClient redisson)
-