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
{{ message }}
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
A number of operations modify an existing value, then assign back to self._db, which has the side-effect of clearing the expiry time. According to the redis documentation, only operations that completely replace a key (rather than modifying it) clear the expiry. I haven't written any tests yet, but looking at the code, it is probably at least
decr, incr, incrby, incrbyfloat
setbit
ltrim
rpoplpush
Some other operations where I'm not sure what redis will do
getset
rename, renamenx
The text was updated successfully, but these errors were encountered:
A new setx function is added to _StrKeyDict that updates the value but
preserves the existing expiry time. This is used by mutating operations
that replace the value rather than mutating it in-place (which is
impossible for strings, and happens not to be done in some other
cases).
Fixes#2.
A number of operations modify an existing value, then assign back to
self._db
, which has the side-effect of clearing the expiry time. According to the redis documentation, only operations that completely replace a key (rather than modifying it) clear the expiry. I haven't written any tests yet, but looking at the code, it is probably at leastSome other operations where I'm not sure what redis will do
The text was updated successfully, but these errors were encountered: