Skip to content

0.5.1

Choose a tag to compare

@sqla-tester sqla-tester released this 20 Sep 19:10

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 of CacheRegion.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 uses pickle.HIGHEST_PROTOCOL
    for the set_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 a CacheRegion with an expiration_time
    of '-1'. Courtesy David Beitey.

  • [bug] The refresh() method on CacheRegion.cache_multi_on_arguments()
    now supports the asdict flag.