Class PoolRedisClusterClient<A,B,C extends io.lettuce.core.cluster.api.StatefulRedisClusterConnection<A,B>>

java.lang.Object
io.inverno.mod.redis.lettuce.internal.AbstractRedisClient<A,B,C>
io.inverno.mod.redis.lettuce.PoolRedisClusterClient<A,B,C>
Type Parameters:
A - key type
B - value type
C - underlying cluster connection type
All Implemented Interfaces:
RedisGeoReactiveOperations<A,B>, RedisHashReactiveOperations<A,B>, RedisHLLReactiveOperations<A,B>, RedisKeyReactiveOperations<A,B>, RedisListReactiveOperations<A,B>, RedisScriptingReactiveOperations<A,B>, RedisSetReactiveOperations<A,B>, RedisSortedSetReactiveOperations<A,B>, RedisStreamReactiveOperations<A,B>, RedisStringReactiveOperations<A,B>, RedisClient<A,B>, RedisOperations<A,B>

public class PoolRedisClusterClient<A,B,C extends io.lettuce.core.cluster.api.StatefulRedisClusterConnection<A,B>> extends io.inverno.mod.redis.lettuce.internal.AbstractRedisClient<A,B,C>

A Lettuce cluster pool Redis client wrapper.

This Redis client implementation doesn't support transaction.

Since:
1.4
Author:
Jeremy Kuhn
  • Constructor Details

    • PoolRedisClusterClient

      public PoolRedisClusterClient(io.lettuce.core.support.AsyncPool<C> pool, Class<A> keyType, Class<B> valueType)

      Creates a Redis client with the specified Lettuce cluster pool.

      Parameters:
      pool - an async pool
      keyType - the key type
      valueType - the value type
  • Method Details

    • operations

      protected Mono<io.inverno.mod.redis.lettuce.internal.operations.StatefulRedisConnectionOperations<A,B,C,?>> operations()
      Description copied from class: io.inverno.mod.redis.lettuce.internal.AbstractRedisClient

      Returns Redis Operations.

      Specified by:
      operations in class io.inverno.mod.redis.lettuce.internal.AbstractRedisClient<A,B,C extends io.lettuce.core.cluster.api.StatefulRedisClusterConnection<A,B>>
      Returns:
      a mono emitting RedisOperations object