kevy

BRPOPLPUSH

Blocking RPOPLPUSH: pop the source tail and push it onto the destination head.

语法BRPOPLPUSH source destination timeout
分组list
参数个数4
起始版本1.0.0
标志write, blocking
复杂度O(1) to serve
Redis 兼容性differs: a cross-shard move is not atomic — the element is popped on the source's shard and pushed on the destination's, and between those two steps it is in neither list. Co-locate the keys with a {hashtag} to get Redis's atomic path

← 全部命令