标签:add set mem ber members sadd member bsp reac
type list
为set类型
向list中添加1和2,3
redis()->sAdd(‘list‘, ‘1‘);
redis()->sAdd(‘list‘, ‘2‘);
redis()->sAdd(‘list‘, ‘3‘);
向list中减去2
redis()->sRem(‘list‘, ‘2‘);
显示list中的值,可以用foreach遍历
redis()->sMembers(‘list‘)
标签:add set mem ber members sadd member bsp reac
原文地址:https://www.cnblogs.com/zhangyouwu/p/12665858.html