-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command suggestion: string "get and delete" #12
Comments
Includes test and documentation.
So I created this command and called it STRPOP. Is that a decent name? Should it accept multiple keys? |
Name-wise: sounds like a good solid name Suggestion: what do you think about popping ranges? I.e. if ungiven to STRPOP, the range default to all (i.e. 0 -1), but I can just trim the end (i.e. -1 -1) the beginning (0 0) or anything else I want, LTRIM-like. |
I like your range idea. I see two ways of going with it:
|
How about something like this: STRPOP key [start [end]] [NODELETE] [LENGTH]Removes the substring of the string value stored at The range determined by the offsets
Normally, the substring is returned as a reply. If the optional An error is returned if the key exists and does not hold a string. Reply: String, the substring of |
Possible suggestion for
rxstrings
- for context see StackExchange/StackExchange.Redis#622The text was updated successfully, but these errors were encountered: