class

Session::PooledRedisStore(T)

Inherits Session::RedisStore < Session::QueryableStore < Session::Store < Reference < Object

Backward-compatible wrapper for RedisStore with connection pooling

DEPRECATED: Use RedisStore.with_pool(pool) or RedisStore.new(pool: pool) instead This class is maintained for backward compatibility and will be removed in a future version

Example migration:

Old way

store = PooledRedisStore(UserSession).new(pool_config)

New way

store = RedisStore(UserSession).with_pool(pool_config)

or

pool = ConnectionPool.new(pool_config) store = RedisStore(UserSession).new(pool: pool)

Constructors

new(pool : ConnectionPool)
Source
new(config : ConnectionPoolConfig = ConnectionPoolConfig.new)
Source