semvec/pypi-packages huggingface dataset:
flask-redis-ex 0.0.4
Simple to use redis in flask.
License: MIT
Keywords: flask,redis

## flask-redis-ex
Simple to use redis in flask.

### Configuration
configure `REDIS_URL` within your Flask config.
- `REDIS_URL` required
- `REDIS_DECODE` Configure the `decode_responses` for redis. default:false

### Usage

```python
from flask import Flask
from flask_redis_ex import redis_client, RedisFlask

app = Flask(__name__)
app.config["REDIS_URL"] = "redis://localhost:6379/0"

RedisFlask(app)

@app.route('/')
def index():
    return redis_client.info()
```
#### custom redis
```python
import redis

redis = redis.Redis.from_url("redis://localhost:6379/0")
RedisFlask(app, redis)
```