Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 586 Bytes

SessionStoreInRedis.md

File metadata and controls

15 lines (11 loc) · 586 Bytes

How to use Redis as storage for Sessions

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.json for editing
  • Update sessionStore.useRedis section to be true
  • Update sessionStore.redisConnectionConfiguration's host and port pointing to corresponding instance of Redis
  • Save the configuration file
  • Restart the application