{"action":"created","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/2001","repository_url":"https://api.github.com/repos/antirez/redis","labels_url":"https://api.github.com/repos/antirez/redis/issues/2001/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/2001/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/2001/events","html_url":"https://github.com/antirez/redis/issues/2001","id":42691720,"number":2001,"title":"Merge two commands (zrange and zrem) into one command (zpop) for `SortedSet`?","user":{"login":"mirrtalk","id":7985750,"avatar_url":"https://avatars.githubusercontent.com/u/7985750?v=3","gravatar_id":"","url":"https://api.github.com/users/mirrtalk","html_url":"https://github.com/mirrtalk","followers_url":"https://api.github.com/users/mirrtalk/followers","following_url":"https://api.github.com/users/mirrtalk/following{/other_user}","gists_url":"https://api.github.com/users/mirrtalk/gists{/gist_id}","starred_url":"https://api.github.com/users/mirrtalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirrtalk/subscriptions","organizations_url":"https://api.github.com/users/mirrtalk/orgs","repos_url":"https://api.github.com/users/mirrtalk/repos","events_url":"https://api.github.com/users/mirrtalk/events{/privacy}","received_events_url":"https://api.github.com/users/mirrtalk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-09-13T10:08:28Z","updated_at":"2016-06-28T09:14:51Z","closed_at":"2014-09-13T14:24:31Z","body":"In my scenario, I want to maintain a sorted-task-list by using `SortedSet` in Redis. There are many workers consume these tasks. So I need execute `zrange` and `zrem` in a transaction. Would you add a new command(like zpop) for `SortedSet`, or give another solution for this issue.\r\nVery thanks."},"comment":{"url":"https://api.github.com/repos/antirez/redis/issues/comments/228995633","html_url":"https://github.com/antirez/redis/issues/2001#issuecomment-228995633","issue_url":"https://api.github.com/repos/antirez/redis/issues/2001","id":228995633,"user":{"login":"mjgp2","id":888462,"avatar_url":"https://avatars.githubusercontent.com/u/888462?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgp2","html_url":"https://github.com/mjgp2","followers_url":"https://api.github.com/users/mjgp2/followers","following_url":"https://api.github.com/users/mjgp2/following{/other_user}","gists_url":"https://api.github.com/users/mjgp2/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgp2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgp2/subscriptions","organizations_url":"https://api.github.com/users/mjgp2/orgs","repos_url":"https://api.github.com/users/mjgp2/repos","events_url":"https://api.github.com/users/mjgp2/events{/privacy}","received_events_url":"https://api.github.com/users/mjgp2/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T09:14:51Z","updated_at":"2016-06-28T09:14:51Z","body":"To resurrect this, can I ask @badboy / @mattsta couldn't ZPOP be implemented as a O(1) operation whereas combining the two ends up O(log n)? Or is this a special case where zrange + zrem is actually O(1)?"}}
{"actor":{"display_login":"mjgp2"}}