I am confused about how to use Queue in StackExchange.Redis. I have tried download the source code and check the documentation. I still can not find how to use it.
please give me suggestion.
thanks very much.
I am confused about how to use Queue in StackExchange.Redis. I have tried download the source code and check the documentation. I still can not find how to use it.
please give me suggestion.
thanks very much.
Redis supports both queues and stacks through the LPUSH, LPOP, RPUSH and RPOP commands. It is just a matter of calling the right operations on a list. Below are sample implementations of a queue and a stack as a reference. "Connection" in the code below is just an instance of a ConnectionMultiplexer