redis 集合set 使用 rediscluster 使用交集

redis cluster 求 两个集合的交集  注意 key 要加大括号: jedis.sinter("{xxxxx}_xxx_1","{xxxxxx}_xxx_2");

例子:

集合1 的 key      {redis-ceshi}-key1

集合2 的 key      {redis-ceshi}-key2

jedis.sinter("{redis-ceshi}-key1","{redis-ceshi}-key2");

posted on 2021-09-01 14:15  RedBackIce  阅读(329)  评论(0编辑  收藏  举报