This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
forked from jamesls/fakeredis
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve expiry time when mutating keys
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.
- Loading branch information
Showing
2 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters