MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zpopminCommand

Function zpopminCommand

app/redis-6.2.6/src/t_zset.c:3925–3932  ·  view source on GitHub ↗

ZPOPMIN key [ ] */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addReplyErrorObjectFunction · 0.85
genericZpopCommandFunction · 0.85

Tested by

no test coverage detected