Redis资料记录

来源:互联网 发布:js代码混淆加密 编辑:程序博客网 时间:2024/04/29 21:17

Redis官网:http://redis.io/

Redis教程: http://www.yiibai.com/redis/

Redis教程(W3C):http://www.w3cschool.cc/redis/redis-tutorial.html

Redis 起步 :http://www.cnblogs.com/shanyou/archive/2012/01/28/2330451.html
Redis中常用命令 :http://www.cnblogs.com/liuling/p/2014-4-19-03.html
Redis安装及主从配置 :http://www.cnblogs.com/liuling/p/2014-4-19-02.html
Redis配置文件参数说明 :http://www.cnblogs.com/liuling/p/2014-4-19-01.html
ShardedJedisPool的使用 :http://www.cnblogs.com/liuling/p/2014-4-21-01.html

Redis 命令参考: http://redisdoc.com/

Jedis 2.7.2 :http://www.mvnrepository.com/artifact/redis.clients/jedis/2.7.2

<dependency>    <groupId>redis.clients</groupId>    <artifactId>jedis</artifactId>    <version>2.7.2</version></dependency>

GitHub上的Jedis:https://github.com/xetorthio/jedis
基本用法:

Jedis jedis = new Jedis("localhost");jedis.set("foo", "bar");String value = jedis.get("foo");

Jedis Cluster:

Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();//Jedis Cluster will attempt to discover cluster nodes automaticallyjedisClusterNodes.add(new HostAndPort("127.0.0.1", 7379));JedisCluster jc = new JedisCluster(jedisClusterNodes);jc.set("foo", "bar");String value = jc.get("foo");

Java中使用Jedis操作Redis :http://www.cnblogs.com/liuling/p/2014-4-19-04.html

3 0
原创粉丝点击