Class RedisLettuceStateRepository

  • All Implemented Interfaces:
    StateRepository

    public class RedisLettuceStateRepository
    extends Object
    implements StateRepository
    A state repository which stores the feature state in Redis using Lettuce client.

    The class provides a builder which can be used to configure the state repository instance (e.g. StatefulConnection pool, key prefix).

    A state repository is able to work in standalone mode (using StatefulRedisConnection) and cluster mode (using StatefulRedisClusterConnection)

    Lettuce doesn't provide default client creator (localhost as a default host, 6379 as a default port) so an exception is made when StatefulConnection pool is not set correctly

    Author:
    Jakub Klebek