Created
October 6, 2011 20:58
-
-
Save dormando/1268659 to your computer and use it in GitHub Desktop.
delete+expire
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
set foo -> hi | |
-> (stored) | |
get foo | |
-> hi | |
delete foo 10 | |
-> (deleted) | |
get foo | |
-> (miss) | |
add foo -> hi | |
-> (not_stored) | |
------------------------ | |
NEW: | |
set foo2 -> hi | |
-> (stored) | |
get foo2 | |
-> hi | |
set foo2 +flags -> NULL | |
-> (stored) | |
get foo2 | |
-> NULL (treated as a miss) | |
add foo2 -> hi | |
-> (not_stored) | |
^ or, note that "get foo2" above came back with a special flag, and never run the set command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment