AdonisJS API
    Preparing search index...

    Interface DatabaseStoreConfig

    Configuration used by the database store.

    interface DatabaseStoreConfig {
        connectionName?: string;
        tableName?: string;
        gcProbability?: number;
        encrypt?: boolean;
    }
    Index
    connectionName?: string
    tableName?: string
    gcProbability?: number

    The probability (in percent) that garbage collection of expired sessions will be triggered on any given request.

    For example, 2 means 2% chance. Set to 0 to disable garbage collection.

    Defaults to 2 (2% chance)

    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