LREM key count value
127.0.0.1:6379> LPUSH website www.baidu.com www.lmcjl.com www.jd.com (integer) 3 127.0.0.1:6379> LPUSH website www.lmcjl.com (integer) 4 127.0.0.1:6379> LREM website -2 www.lmcjl.com #count决定删除数量,这里取其绝对值 (integer) 2 127.0.0.1:6379> LRANGE website 0 1 1) "www.jd.com" 2) "www.baidu.com"
本文链接:http://task.lmcjl.com/news/12641.html