Skip to content

aboganas/Flask-Cache-Redis-Cluster

 
 

Repository files navigation

Flask-Cache-Redis-Cluster

PyPI version Travis CI Code Climate Test Coverage

Implements a redis cluster backend for Flask-Cache(ing) as the standard redis cache cannot handle a redis cluster.

Usage

from flask import Flask
from flask_caching import Cache
app = Flask(__name__)


class Config(object):

    CACHE_TYPE = 'flask_cache_redis_cluster.rediscluster'
    CACHE_REDIS_HOST = 'redis'
    CACHE_REDIS_PORT = 6379
    CACHE_KEY_PREFIX = '<your prefix>'
    # ... other options


app.config.from_object(Config)
cache = Cache(app)

Links

About

This implements a redis cluster backend for Flask-Cache[ing] as the standard redis cache cannot handle a redis cluster.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 52.1%
  • Python 41.9%
  • Shell 6.0%