标签: redis
我有n个具有相同模式key:abc:<id>的键,用于存储未排序的集合。我想对它们全部进行合并,但是根据Redis文档(https://redis.io/commands/sunion),我只能在命令中指定单独的键,例如SUNION key:abc:1 key:abc:2 key:abc:3
key:abc:<id>
SUNION key:abc:1 key:abc:2 key:abc:3
我想要类似SUNION key:abc:*
SUNION key:abc:*