0.5.0
0.5.0
Released: Fri Jun 21 2013
-
[misc] Source repository has been moved to git.
-
[bug] The Redis backend now uses
pickle.HIGHEST_PROTOCOLwhen
producing pickles. Courtesy Lx Yu. -
[bug]
CacheRegion.cache_on_arguments()now has a new argument
to_str, defaults tostr(). Can be replaced withunicode()
or other functions to support caching of functions that
accept non-unicode arguments. Initial patch courtesy Lx Yu. -
[feature] Now using the
Lockincluded with the Python
redisbackend, which addslock_timeout
andlock_sleeparguments to theRedisBackend. -
[feature] Added new methods
CacheRegion.get_or_create_multi()
andCacheRegion.cache_multi_on_arguments(), which
make use of theCacheRegion.get_multi()and similar
functions to store and retrieve multiple keys at once while
maintaining dogpile semantics for each. -
[feature] Added a method
refresh()to functions decorated by
CacheRegion.cache_on_arguments()and
CacheRegion.cache_multi_on_arguments(), to complement
invalidate()andset().References: #36
-
[feature]
CacheRegion.configure()accepts an
optionaldatetime.timedeltaobject
for theexpiration_timeargument as well
as an integer, courtesy Jack Lutz.References: #13
-
[feature] The
expiration_timeargument passed to
CacheRegion.cache_on_arguments()
may be a callable, to return a dynamic
timeout value. Courtesy David Beitey.References: #20
-
[feature] Added support for simple augmentation of existing
backends using theProxyBackendclass.
Thanks to Tim Hanus for the great effort with
development, testing, and documentation.References: #26
-
[feature] Full support for multivalue get/set/delete
added, usingCacheRegion.get_multi(),
CacheRegion.set_multi(),CacheRegion.delete_multi(),
courtesy Marcos Araujo Sobrinho.References: pull request 14
-
[bug] Fixed bug where the "name" parameter for
CacheRegionwas ignored entirely.
Courtesy Wichert Akkerman.References: #27