glowingblue / redis-setup
Makes it easy to enable/disable Redis features: Cache, Queue & Sessions
Installs: 23 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 0
Open Issues: 1
Type:flarum-extension
Requires
- blomstra/flarum-redis: ^0.4.0
- flarum/core: ^1.2.0
README
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