• antirez's avatar
    ZPOP: change sync ZPOP to have a count argument instead of N keys. · 56bbab23
    antirez authored
    Usually blocking operations make a lot of sense with multiple keys so
    that we can listen to multiple queues (or whatever the app models) with
    a single connection. However in the synchronous case it is more useful
    to be able to ask for N elements. This is a change that I also wanted to
    perform soon or later in the blocking list variant, but here it is more
    natural since there is no reply type difference.
    56bbab23
blocked.c 24.2 KB