
Redis
luyee2010
这个作者很懒,什么都没留下…
展开
-
Spring Redis 事务Multi Exec Watch
今天在测试spring Redis的时候出现这么个:org.springframework.dao.InvalidDataAccessApiUsageException: ERR EXEC without MULTI; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR EXEC wi...原创 2013-05-27 23:10:40 · 14703 阅读 · 1 评论 -
Redis need tcl 8.5 or newer
hadoop@stormspark:~/workspace/redis2.6.13/src$ make testYou need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.g原创 2014-01-25 13:48:46 · 62190 阅读 · 7 评论 -
Redis命令zrange,zrangebyscore,zrevrank,zremrangebyscore
zrange:索引的范围检索(withScores)redis 127.0.0.1:6779> zadd ss 12 a(integer) 0redis 127.0.0.1:6779> zadd ss 5 b(integer) 1redis 127.0.0.1:6779> zadd ss 1000 c(integer)zrangeredis 127.0.0.1:6779>原创 2014-01-24 15:28:36 · 11910 阅读 · 0 评论 -
JedisPool使用原理及源代码
JedisPool的使用 public String set(String key, String value) { Jedis jedis = null; boolean success = true; try { jedis = this.pool.getResource(); return jedis.set(key, value); }catch (Jedi原创 2013-12-26 12:37:20 · 48121 阅读 · 2 评论 -
Redis Error
1,MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the err原创 2013-08-13 21:06:48 · 3093 阅读 · 0 评论 -
Redis Sentinel;Redis Sentinel配置;redis集群;redis故障转移
# Redis-Sentinel的官网地址:http://redis.io/topics/sentinel# 注意:Redis-Sentinel官网提供不是稳定版!个人感觉这个比keepalived+redis来切换好非常多。配置环境:OS: CentOS6.1 x86 * 4Software: redis-2.6.9内存: 16GCPU: E5转载 2013-07-19 19:40:59 · 21162 阅读 · 3 评论 -
Redis配置文件redis.conf参数解读
redis.conf配置选项如下daemonize 是否以后台进程运行,默认为nopidfile 如以后台进程运行,则需指定一个pid,默认为/var/run/redis.pidbind 绑定主机IP,默认值为127.0.0.1(注释)port 监听端口,默认为6379timeout 超时时间,默认为300(秒)loglevel 日志记录等级,有4个可选值,debug,ve转载 2013-07-17 21:14:24 · 1007 阅读 · 0 评论 -
Jedis Client的使用以及序列化
JedisPool pool = new JedisPool(poolConfig, IP, PORT, timeout);public String set(String key,String value) { Jedis jedis = null;boolean success = true;try {jedis = this.pool.ge原创 2013-07-09 20:42:03 · 5799 阅读 · 0 评论 -
Redis操作 hash sort String sorted_set list help @String @list
redis 127.0.0.1:6379> help @string APPEND key value summary: Append a value to a key since: 1.3.3 DECR key summary: Decrement the integer value of a key by one since: 0.07原创 2013-05-30 09:08:14 · 2309 阅读 · 0 评论 -
Redis Hash操作
redis 127.0.0.1:6379> hset user user2 9000(integer) 1redis 127.0.0.1:6379> hset uset user3 8000(integer) 1redis 127.0.0.1:6379> hset user user3 8000(integer) 1redis 127.0.0.1:6379> hset us原创 2013-05-29 14:43:42 · 8788 阅读 · 0 评论 -
Redis 有序集(Sorted set)操作
zadd grade2 200 item3:0zadd grade2 4000 item4:1zadd grade2 1000 item5:1zrange grade2 0 -1 withscores*10$5item1$3100$5item3$3200$5item2$3300$5item5$41000原创 2013-05-29 10:00:45 · 2409 阅读 · 0 评论 -
使用JedisPool来连接Twemproxy
这里主要是配置的问题: 这里的配置testOnBorrow只能配置为false 否则会报错Caused by: java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failedat org.apache.commons.pool.im原创 2013-12-20 19:28:36 · 16397 阅读 · 8 评论