Class NamedRedisClientFactory<K,V>

java.lang.Object
io.micronaut.configuration.lettuce.AbstractRedisClientFactory<K,V>
io.micronaut.configuration.lettuce.NamedRedisClientFactory<K,V>
Type Parameters:
K - Key type
V - Value type

@Factory public class NamedRedisClientFactory<K,V> extends AbstractRedisClientFactory<K,V>
A factory bean for constructing RedisClient instances from NamedRedisServersConfiguration instances.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • NamedRedisClientFactory

      public NamedRedisClientFactory(io.micronaut.context.BeanLocator beanLocator, @Primary @Nullable @Nullable io.lettuce.core.resource.ClientResources defaultClientResources, @Primary io.lettuce.core.codec.RedisCodec<K,V> codec)
      Parameters:
      beanLocator - The BeanLocator
      defaultClientResources - The ClientResources
      codec - The RedisCodec
  • Method Details