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

Function lmoveCommand

src/t_list.cpp:825–832  ·  view source on GitHub ↗

LMOVE (LEFT|RIGHT) (LEFT|RIGHT) */

Source from the content-addressed store, hash-verified

823
824/* LMOVE <source> <destination> (LEFT|RIGHT) (LEFT|RIGHT) */
825void lmoveCommand(client *c) {
826 int wherefrom, whereto;
827 if (getListPositionFromObjectOrReply(c,c->argv[3],&wherefrom)
828 != C_OK) return;
829 if (getListPositionFromObjectOrReply(c,c->argv[4],&whereto)
830 != C_OK) return;
831 lmoveGenericCommand(c, wherefrom, whereto);
832}
833
834/* This is the semantic of this command:
835 * RPOPLPUSH srclist dstlist:

Callers

nothing calls this directly

Calls 2

lmoveGenericCommandFunction · 0.85

Tested by

no test coverage detected