Class RedisClientManager


  • public final class RedisClientManager
    extends Object
    Manages Redis clients to reduce the amount of initialisation work on each I/O operation.
    Author:
    Pete Cornish
    • Constructor Detail

      • RedisClientManager

        public RedisClientManager()
        Generally, you don't want to initialise your own manager - instead, use the DEFAULT_MANAGER.
    • Method Detail

      • setConfigFile

        public void setConfigFile​(Path configFilePath)
        Override the default Redis configuration discovery strategy.
      • setOverrideConfig

        public void setOverrideConfig​(org.redisson.config.Config overrideConfig)
        Override the default Redis configuration discovery strategy.
      • getRedis

        public RedisBackingStore getRedis​(String storeName)
        Parameters:
        storeName - a name to associate with the instance
        Returns:
        a new or existing Redis client for the given store name
      • reset

        public void reset()
        Shut down the Redis client.