Skip to content

core/cachecore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Cache Base Classes for Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published