0.5.1
0.5.1
Released: Thu Oct 10 2013
-
[feature] The
CacheRegion.invalidate()method now supports an option
hard=True|False. A "hard" invalidation, equivalent to the
existing functionality ofCacheRegion.invalidate(), means
CacheRegion.get_or_create()will not return the "old" value at
all, forcing all getters to regenerate or wait for a regeneration.
"soft" invalidation means that getters can continue to return the
old value until a new one is generated.References: #38
-
[feature] New dogpile-specific exception classes have been added, so that
issues like "region already configured", "region unconfigured",
raise dogpile-specific exceptions. Other exception classes have
been made more specific. Also added new accessor
CacheRegion.is_configured. Pullreq courtesy Morgan Fainberg.References: #40
-
[bug] Erroneously missed when the same change was made for
set()
in 0.5.0, the Redis backend now usespickle.HIGHEST_PROTOCOL
for theset_multi()method as well when producing pickles.
Courtesy Łukasz Fidosz. -
[bug] [py3k] [redis] Fixed an errant
u''causing incompatibility in Python3.2
in the Redis backend, courtesy Jimmey Mabey.References: #39
-
[bug] The
util.coerce_string_conf()method now correctly coerces
negative integers and those with a leading + sign. This previously
prevented configuring aCacheRegionwith anexpiration_time
of'-1'. Courtesy David Beitey. -
[bug] The
refresh()method onCacheRegion.cache_multi_on_arguments()
now supports theasdictflag.