Redis Store

The Redis Store provides persistent, distributed session storage.

Overview

spinner

Usage

Session.configure do |config|
  config.provider = Session::RedisStore(UserSession).provider(
    client: Redis.new(host: "localhost", port: 6379)
  )
end

Characteristics

Feature
Value

Storage

Redis server

Max Size

Redis memory

Persistence

Redis persistence

Multi-node

Yes

TTL

Automatic

Best For

  • Production deployments

  • Multi-server architectures

  • Session persistence required

With Encryption

With Circuit Breaker

Health Check

For High Traffic

Consider the Clustered Redis Store for local caching and reduced Redis load.

Last updated

Was this helpful?