Skip to content

Instantly share code, notes, and snippets.

@mugyu
Created January 30, 2019 08:45
Show Gist options
  • Save mugyu/96eb706ec4ef5f456919f1e052881810 to your computer and use it in GitHub Desktop.
Save mugyu/96eb706ec4ef5f456919f1e052881810 to your computer and use it in GitHub Desktop.
RedisのSortedSetをコピー

RedisのSortedSetをコピー

本来は2つ以上のSortedSetを統合するして新しいSortedSetを作るコマンドだけど、 ソースを一つにすると単純にそのコピーを作ってくれるらしい。

ZUNIONSTORE dest_key 1 source_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment