forked from dragonflydb/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(setfamily): Add SADDEX command (dragonflydb#348)
Add SADDEX <key> <seconds> member member .... Provides expiry semantics for set members with seconds resolution. Important things to note: 1. The expiry is passive only, so if nobody touches that set then its members are being kept. 2. SCARD provides an upper bound estimation of set size for sets holding the expiring members. The reason for this is because SCARD returns a cached size and does not go over all members to check whether they expired. For regular sets it's exact, of course. Fixes dragonflydb#335
- Loading branch information
Showing
4 changed files
with
329 additions
and
203 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
Oops, something went wrong.