redis: list type

1. 
Add / modify data 
 lpush key value1 [value2] …… 
 rpush key value1 [value2] …… 
Get data 
 lrange key start stop 
 lindex key index 
 llen key 
Get and remove data 
 lpop key 
 rpop key 

2. 
Get and move within the specified time In addition to the data 
 blpop key1 [key2] timeout 
 brpop key1 [key2] timeout 
 brpoplpush source destination timeout 

3. 
Remove the specified data 
 lrem key count value

  

Guess you like

Origin www.cnblogs.com/wwjj4811/p/12717947.html