-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kenneth Reitz
committed
Jun 29, 2012
1 parent
069fb4d
commit eea7000
Showing
2 changed files
with
69 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
CacheCore | ||
========= | ||
|
||
Simple cache backends, inspired by werkzeug.contrib.cache. | ||
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 | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
Installing cachecore is simple with pip:: | ||
|
||
$ pip install cachecore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters