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

Function blmoveCommand

src/t_list.cpp:1015–1025  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

blmoveGenericCommandFunction · 0.85

Tested by

no test coverage detected