1. Michael Bayer
  2. dogpile.cache
  3. Issues
Issue #71 resolved

region.get_or_create calls creator function when expiration_time = -1

Fabian Neumann
created an issue

I have a redis backend region that per default has no expiration_time set. Instead I manually set it on each call to region.get_or_create -- depending on some business logic.

In some cases I don't want the cached value to expire at all, so I pass the keyword argument expiration_time=-1. get_or_create still calls the creator function in these cases, which, if I understand it correctly, should not be the case, right? The value is already in the Redis db.

Comments (3)

  1. Log in to comment