redis.rpush("source", "one", "two", "three") redis.lpush("destination", "four", "five", "six") assert redis.lmove("source", "destination", "RIGHT", "LEFT") == "three" assert redis.lrange("source", 0, -1) == ["one", "two"]
Move an element from one list to another.
Was this page helpful?