forked from clone/flarum-ext-redis-setup
Updated README & description
This commit is contained in:
41
README.md
41
README.md
@@ -1,9 +1,42 @@
|
|||||||
# GB Redis Setup
|
# ⚡️ Redis Setup
|
||||||
|
|
||||||

|
[](https://github.com/glowingblue/flarum-ext-redis-setup/blob/master/LICENSE.md) [](https://packagist.org/packages/glowingblue/redis-setup) [](https://packagist.org/packages/glowingblue/redis-setup)
|
||||||
|
|
||||||
A [Flarum](http://flarum.org) extension. Redis Cache, Queue & Sessions setup (uses env variables for the Redis config)
|
A [Flarum](http://flarum.org) extension.
|
||||||
|
|
||||||
## Setting up Redis Cache & Queue for a Flarum project
|
Makes it easy to enable/disable Redis features:
|
||||||
|
|
||||||
|
- Cache
|
||||||
|
- Queue
|
||||||
|
- Sessions
|
||||||
|
|
||||||
|
For this to work, environment variables have to be set on your host:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
REDIS_HOST=null # Required
|
||||||
|
REDIS_PORT=6379 # Optional, else uses default
|
||||||
|
REDIS_PASSWORD=null # Required, can be an empty string
|
||||||
|
REDIS_DATABASE_CACHE=1 # Optional, else uses default
|
||||||
|
REDIS_DATABASE_QUEUE=2 # Optional, else uses default
|
||||||
|
REDIS_DATABASE_SESSION=3 # Optional, else uses default
|
||||||
|
```
|
||||||
|
|
||||||
|
## 📥 Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require glowingblue/redis-setup
|
||||||
|
```
|
||||||
|
|
||||||
|
## ♻ Updating
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer update glowingblue/redis-setup
|
||||||
|
php flarum cache:clear
|
||||||
|
```
|
||||||
|
|
||||||
|
## 🔗 Links
|
||||||
|
|
||||||
|
- [Flarum Discuss post](https://discuss.flarum.org/d/27455)
|
||||||
|
- [Source code on GitHub](https://github.com/glowingblue/flarum-ext-redis-setup)
|
||||||
|
- [Report an issue](https://github.com/glowingblue/flarum-ext-redis-setup/issues)
|
||||||
|
- [Download via Packagist](https://packagist.org/packages/glowingblue/redis-setup)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "glowingblue/redis-setup",
|
"name": "glowingblue/redis-setup",
|
||||||
"description": "Redis Cache, Queue & Session setup (uses env variables for the Redis config)",
|
"description": "Makes it easy to enable/disable Redis features: Cache, Queue & Sessions",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"flarum", "redis", "cache", "queue", "session"
|
"flarum", "redis", "cache", "queue", "session"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user