Cache extension for Flask
Python Other
Clone or download
Pull request Compare This branch is 12 commits ahead of thadeusb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
examples
flask_cache
.gitignore
.travis.yml
CHANGES
CONTRIBUTORS
LICENSE
MANIFEST.in
Makefile
README.md
requirements.txt
setup.cfg
setup.py
test_cache.py
test_template.html
tox.ini

README.md

Flask-Cache

Adds easy cache support to Flask.


This fork of Flask-Cache includes the ability to cache with Apache Cassandra by setting CACHE_TYPE: cassandra.

The following config keys are available:

  • CACHE_CASSANDRA_NODES: list of Cassandra IPs or hostnames (default: ["localhost"])

  • CACHE_CASSANDRA_PORT: integer port number to connect on for all nodes (default: 9042)

  • CACHE_CASSANDRA_TABLE: string table name to use in Cassandra (default: "flask_cache")

  • CACHE_CASSANDRA_KEYSPACE: string keyspace to use in Cassandra (default: "flask_cache")

  • CACHE_CASSANDRA_REPLICATION_FACTOR: integer replication factor to use (default: 1)

  • CACHE_CASSANDRA_READ_CONSISTENCY: integer ConsistencyLevel to use for reads (default: 1)

  • CACHE_CASSANDRA_WRITE_CONSISTENCY: integer ConsistencyLevel to use for writes (default: 0)

  • CACHE_CASSANDRA_DELETE_CONSISTENCY: integer ConsistencyLevel to use for deletes (default: 0)

  • CACHE_CASSANDRA_TABLE_CONSISTENCY: integer ConsistencyLevel to use for table modifications (default: 6)