list列表类型 list类型最典型的应用场景是做队列,相当于C#中的Queue(一般用ConcurrentQueue)队列。 我们可以使用lpush,lpop,rpush,rpop这四个命令来实现,如下图。