========================== 2017/3/31更新=======================
redisson实现了分布式和可扩展的java数据结构,支持的数据结构有:List, Set, Map, Queue, SortedSet, ConcureentMap, Lock, AtomicLong, CountDownLatch。并且是线程安全的,底层使用Netty 4实现网络通信。和jedis相比,功能比较简单,不支持排序,事务,管道,分区等redis特性,可以认为是jedis的补充,不能替换jedis。
redission.getQueue支持队列
==============================================================
在redis支持的数据结构中,有一个是集合list. 对List的操作常见的有lpush lrange等。在这种常见的操作时,我们是把集合当做典型意义上的‘集合’来使用的。往往容易被忽视的是List作为“队列”的使用情况。
反编译redis的jar包,会发现:
public String rpop(String key)
{
checkIsInMulti();
this.client.rpop(key);
return this.client.getBulkReply();
}
public String rpoplpush(String srckey, String dstkey)
{
checkIsInMulti();
this.client.rpoplpush(srckey,