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
Lists have RPOPLPUSH. Why don't hashes have something like "atomically move from one hash to another"? Why don't sorted lists have an RPOPLPUSH equivalent? Why don't sets have an RPOPLUSH equivalent?
Why can't you get the length of a list?
The text was updated successfully, but these errors were encountered:
Why don't hashes have something like "atomically move from one hash to another"?
My guess is that isn't a popular request (first time I've heard of it). If you need it, a Lua script that does it is both idempotent and trivial to implement.
Why don't sorted lists have an RPOPLPUSH equivalent?
"sorted lists" aren't one of Redis' type, assuming you meant sorted sets. See #4879 (comment) and specifically the 2nd paragraph about BZPOPZADD.
Why don't sets have an RPOPLUSH equivalent?
Sets aren't ordered... what does RPOPing from a Set mean? Aaanyway, if you need random popping from a Set and shoving it into another one... again uncommon pattern... again Lua to the rescue.
P.S. I found that the tone you're using in the issue is evoking some very negative emotions in me for some reason, you may want to take that into future consideration.
Lists have RPOPLPUSH. Why don't hashes have something like "atomically move from one hash to another"? Why don't sorted lists have an RPOPLPUSH equivalent? Why don't sets have an RPOPLUSH equivalent?
Why can't you get the length of a list?
The text was updated successfully, but these errors were encountered: