Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple Cache Base Classes for Python.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 cachecore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
Octocat-spinner-32 test_cachecore.py
README.rst

CacheCore

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")
'value'
>>> c.get("missing") is None
True

Cache Types

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

Installation

Installing cachecore is simple with pip:

$ pip install cachecore
Something went wrong with that request. Please try again.