Simple Cache Base Classes for Python.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cachecore readme Jun 29, 2012
.travis.yml Update master Jun 29, 2012
LICENSE lawyer up Jun 29, 2012 manifest Jun 29, 2012
Makefile test runner Jun 29, 2012
README.rst Update master Jun 29, 2012 Jun 29, 2012 encoding and stuff Jun 29, 2012



Simple cache backends, inspired by werkzeug.contrib.cache.

Creating a Cache Object

To create a cache object you just import the cache system of your choice from the cache module and instantiate it. Then you can start working with that object:

>>> from cachecore import SimpleCache
>>> c = SimpleCache()
>>> c.set("foo", "value")
>>> c.get("foo")
>>> c.get("missing") is None

Cache Types

  • In-Memory
  • Redis
  • Memcache
  • Filesystem
  • Your own (extend BaseCache)


Installing cachecore is simple with pip:

$ pip install cachecore