1.插入队列(生产者)
private static RedisClient client = new RedisClient("127.0.0.1", 6379, null);
client.EnqueueItemOnList(listId, valuestr);
2.读取队列(消费者)
private static RedisClient client = new RedisClient("127.0.0.1", 6379, null);
////阻塞模式读取
string value = client.BlockingDequeueItemFromList(listId,new TimeSpan(1));
///非阻塞模式读取
---------------------
作者:清雨小竹
来源:CSDN
原文:https://blog.csdn.net/zzzili/article/details/77479283
版权声明:本文为博主原创文章,转载请附上博文链接!