Skip to content

Redis

Redis is used for caching database queries if a connection to a redis server is configured. Redis is also used to publish changes (create, update, delete) to domain entities using the pub-sub pattern, to which microservices can respond.

The environment variables in the .env file variant can also be provided via runtime environment.

typescript

export default {
    // ...
    /**
     * Boolean or connection string (redis://127.0.0.1)
     */
    redis: true,
    // ...
}

export default {
    // ...
    /**
     * Boolean or connection string (redis://127.0.0.1)
     */
    redis: true,
    // ...
}
dotenv
redis=redis://127.0.0.1
redis=redis://127.0.0.1
dotenv
REDIS=redis://127.0.0.1
REDIS=redis://127.0.0.1