You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to reset the TTL of a key, calling cache.expire(key, DEFAULT_TIMEOUT) fails, because the stubbed DEFAULT_TIMEOUT = object() is passed through to redis-py rather than an integer.
This does not affect the touch method, because that one explicitly updates the timeout with:
Describe the bug
When attempting to reset the TTL of a key, calling
cache.expire(key, DEFAULT_TIMEOUT)
fails, because the stubbedDEFAULT_TIMEOUT = object()
is passed through to redis-py rather than an integer.This does not affect the
touch
method, because that one explicitly updates the timeout with:To Reproduce
Steps to reproduce the behavior:
cache.expire(key, DEFAULT_TIMEOUT)
Expected behavior
The default timeout should be replaced by the backend integer default timeout before sending the value to redis-py
Stack trace
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: