MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zpopminCommand

Function zpopminCommand

src/t_zset.cpp:3923–3930  ·  view source on GitHub ↗

ZPOPMIN key [ ] */

Source from the content-addressed store, hash-verified

3921
3922/* ZPOPMIN key [<count>] */
3923void zpopminCommand(client *c) {
3924 if (c->argc > 3) {
3925 addReplyErrorObject(c,shared.syntaxerr);
3926 return;
3927 }
3928 genericZpopCommand(c,&c->argv[1],1,ZSET_MIN,0,
3929 c->argc == 3 ? c->argv[2] : NULL);
3930}
3931
3932/* ZMAXPOP key [<count>] */
3933void zpopmaxCommand(client *c) {

Callers

nothing calls this directly

Calls 2

addReplyErrorObjectFunction · 0.85
genericZpopCommandFunction · 0.85

Tested by

no test coverage detected