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

Function blmoveCommand

app/redis-6.2.6/src/t_list.c:1014–1024  ·  view source on GitHub ↗

BLMOVE (LEFT|RIGHT) (LEFT|RIGHT) */

Source from the content-addressed store, hash-verified

1012
1013/* BLMOVE <source> <destination> (LEFT|RIGHT) (LEFT|RIGHT) <timeout> */
1014void blmoveCommand(client *c) {
1015 mstime_t timeout;
1016 int wherefrom, whereto;
1017 if (getListPositionFromObjectOrReply(c,c->argv[3],&wherefrom)
1018 != C_OK) return;
1019 if (getListPositionFromObjectOrReply(c,c->argv[4],&whereto)
1020 != C_OK) return;
1021 if (getTimeoutFromObjectOrReply(c,c->argv[5],&timeout,UNIT_SECONDS)
1022 != C_OK) return;
1023 blmoveGenericCommand(c,wherefrom,whereto,timeout);
1024}
1025
1026/* BRPOPLPUSH <source> <destination> <timeout> */
1027void brpoplpushCommand(client *c) {

Callers

nothing calls this directly

Calls 3

blmoveGenericCommandFunction · 0.85

Tested by

no test coverage detected