AdonisJS API
    Preparing search index...

    Type Alias RedisStoreConfig

    Configuration for Redis-based session storage. Sessions are stored in a Redis database with automatic expiry.

    const redisConfig: RedisStoreConfig = {
    connection: 'main' // Redis connection name from config/redis.ts
    }
    type RedisStoreConfig = {
        connection: keyof RedisConnections;
        encrypt?: boolean;
    }
    Index
    connection: keyof RedisConnections

    Name of the Redis connection to use (must match connection name in config/redis.ts)

    encrypt?: boolean

    Encrypt the session data with the encryption service instead of only signing it. Sessions written without encryption cannot be read once it is enabled, so users start a new session.

    Defaults to false