glowingblue/redis-setup

Makes it easy to enable/disable Redis features: Cache, Queue & Sessions

1.0.3 2021-07-05 13:12 UTC

This package is auto-updated.

Last update: 2021-12-05 14:56:05 UTC


README

MIT license Latest Stable Version Total Downloads

A Flarum extension.

Makes it easy to enable/disable Redis features:

  • Cache
  • Queue
  • Sessions

If you are using a local redis setup, you will likely be able to simply use the defaults provided. Any of these can be overridden using environment variables as follows:

REDIS_HOST='127.0.0.1 # Optional, else uses default
REDIS_PORT=6379 # Optional, else uses default
REDIS_PASSWORD=null # Optional, otherwise null
REDIS_DATABASE_CACHE=1 # Optional, else uses default
REDIS_DATABASE_QUEUE=2 # Optional, else uses default
REDIS_DATABASE_SESSION=3 # Optional, else uses default
REDIS_PREFIX='flarum_' # Optional, else uses default

📥 Installation

composer require glowingblue/redis-setup

♻ Updating

composer update glowingblue/redis-setup
php flarum cache:clear

🔗 Links