Class RedissonUtils

java.lang.Object
com.axelor.cache.redisson.RedissonUtils

public class RedissonUtils extends Object
Redisson utilities
  • Method Details

    • getRedisAddresses

      public static List<InetSocketAddress> getRedisAddresses(org.redisson.api.RedissonClient redisson)
    • getRedisVersion

      public static Version getRedisVersion(org.redisson.api.RedissonClient redisson)
      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

      public static Optional<Version> getValkeyVersion(org.redisson.api.RedissonClient redisson)
      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

      public static boolean hasCommand(org.redisson.api.RedissonClient redisson, String command)
    • hasHashFieldExpiration

      public static boolean hasHashFieldExpiration(org.redisson.api.RedissonClient redisson)