Syntax
SREM key member1 member2 ...
memberN
Removes the members from given
set. Specified members that are not a member of this set are ignored.
Returns
Returns number of members
removed from set.
127.0.0.1:6379> sadd set1 2 4 6 8 1 5 3 (integer) 7 127.0.0.1:6379> smembers set1 1) "1" 2) "2" 3) "3" 4) "4" 5) "5" 6) "6" 7) "8" 127.0.0.1:6379> srem set1 1 3 5 7 9 (integer) 3 127.0.0.1:6379> smembers set1 1) "2" 2) "4" 3) "6" 4) "8" 127.0.0.1:6379>
No comments:
Post a Comment