下表列出了 Redis 集合基本命令:
序号 | 命令及描述 |
1 | SADD key member1 [member2] |
2 | SCARD key |
3 | SDIFF key1 [key2] |
4 | SDIFFSTORE destination key1 [key2] |
5 | SINTER key1 [key2] |
6 | SINTERSTORE destination key1 [key2] |
7 | SISMEMBER key member |
8 | SMEMBERS key |
9 | SMOVE source destination member |
10 | SPOP key |
11 | SRANDMEMBER key [count] |
12 | SREM key member1 [member2] |
13 | SUNION key1 [key2] |
14 | SUNIONSTORE destination key1 [key2] |
15 |