Updated README & description

This commit is contained in:
iPurpl3x
2021-05-31 10:58:11 +02:00
parent 372114f8f5
commit 66d39fd0d4
2 changed files with 38 additions and 5 deletions

View File

@@ -1,9 +1,42 @@
# GB Redis Setup
# ⚡️ Redis Setup
![License](https://img.shields.io/badge/license-MIT-blue.svg)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/glowingblue/flarum-ext-redis-setup/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/glowingblue/redis-setup.svg)](https://packagist.org/packages/glowingblue/redis-setup) [![Total Downloads](https://img.shields.io/packagist/dt/glowingblue/redis-setup.svg)](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)

View File

@@ -1,6 +1,6 @@
{
"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": [
"flarum", "redis", "cache", "queue", "session"
],