redis

1、数组api

lpush array 1 2 3 4 5
lindex array 2

2、栈api

lpush stack 1 2 3 4 5
lpop stack
lrange stack 0 -1

3、队列api

lpush queue 1 2 3 4 5
rpop queue

4、阻塞队列

原文地址:https://www.cnblogs.com/gabin/p/13661372.html