1. Michael Bayer
  2. dogpile.cache
  3. Pull requests

Pull requests

#25 Merged at 337ed32
Repository
hongbin034
Branch
fixexpire
Repository
zzzeek
Branch
master

Fix incorrect expiration of value if expiration_time is -1.

Author
  1. Hongbin Lu
Reviewers
Description

According to the documentation below, setting expiration_time to -1 should get a cached value with no expiration consideration. However, the methods did not seem to behave this way.

http://dogpilecache.readthedocs.org/en/latest/api.html#dogpile.cache.region.CacheRegion.get_or_create.params.expiration_time http://dogpilecache.readthedocs.org/en/latest/api.html#dogpile.cache.region.CacheRegion.get_or_create_multi.params.expiration_time

Comments (3)