Redis Store
Overview
Usage
Direct Client
Session.configure do |config|
config.store = Session::RedisStore(UserSession).new(
client: Redis.new(host: "localhost", port: 6379)
)
endConnection Pool (Recommended for Production)
Session.configure do |config|
# Using factory method
pool_config = Session::ConnectionPoolConfig.new(
size: 20,
timeout: 2.seconds
)
config.store = Session::RedisStore(UserSession).with_pool(pool_config)
endCharacteristics
Feature
Value
Best For
With Encryption
With Circuit Breaker
Health Check
For High Traffic
Last updated
Was this helpful?