Skip to main content

Adds redis cluster caching support to the Flask Cache(ing) extension

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Cache-Redis-Cluster-0.0.5.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file Flask-Cache-Redis-Cluster-0.0.5.tar.gz.

File metadata

File hashes

Hashes for Flask-Cache-Redis-Cluster-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d46c1791e1729668c5be794be492820d187b7aa8012c7ed01a92b9664b905873
MD5 e71c8b61466241b639c8401b02ccc926
BLAKE2b-256 79c2fd9e0c39d0292f24d622ec5523d80c1c40494b76a0eb5d2dcf36e163ae4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page