How to use Redis as storage for Sessions
October 19, 2021 ยท View on GitHub
By default application uses its database as a storage for session data (Sessions table).
It is possible to use different storage mechanism for Sessions data: Redis.
Steps
- Ensure the application's source is at least
1.4.0 - Stop the application
- Open
config/app.jsonfor editing - Update
sessionStore.useRedissection to betrue - Update
sessionStore.redisConnectionConfiguration'shostandportpointing to corresponding instance of Redis - Save the configuration file
- Restart the application