Redis

In standalone installations the application uses a file-based storage for cache and session data. It allows the application to be used out of the box without any additional configuration. However, as application usage grows IO access can become a bottleneck. Redis is a great alternative which offers an open source, fast, in-memory, data store.

Contents

Installation

For information on how to download and install Redis, please visit https://redis.io/download.

Configuration

For details on how to set the below configuration items, please read Environment Variables.

To configure Redis the following environment variables should be used:

Once authentication data has been configured, you can switch away from file-based storage drivers by specifying the following environment variables:


    CACHE_DRIVER=redis
    SESSION_DRIVER=redis