《Redis从入门到精通》

699.00

1.slowlog-log-slower-than <microseconds>

2.slowlog-max-len <length>

3.slowlog len

4.slowlog reset

5.监控工具redmon、redis live

[展开全文]
niuhp · 2015-01-06 · 服务器管理 0

1.redis-server --<option1> <value1> --<option2> <value2>

2.

[展开全文]

1.eval script numberkeys key [key ...] arg [arg ...]

2.local关键字

3.redis-cli --eval file.lua keys,argvs

4.script exists sha1 [sha1 ...]

5. script load script

6.script flush

7.evalsha sha1 numberkeys key [key ...] arg [arg ...]

8.有时间需要再看一遍

[展开全文]
niuhp · 2014-12-30 · Lua 脚本 0

1.watch

multi

exec

2.即使其他客户端将key设置为原来的值,乐观锁也会失败,也就是watch只检查操作不比对结果。

3.watch key [key ... key]

4.unwatch 取消所有,为什么不能取消单个

5.乐观锁试多次不也是等待吗???

[展开全文]
niuhp · 2014-12-25 · 事务(下) 0

1.multi

2.discard

3.exute

4.流水线命令有吗?

[展开全文]
niuhp · 2014-12-25 · 事务(上) 0
1.流水线可以理解为批量操作
[展开全文]
niuhp · 2014-12-25 · 流水线 0

1.pubsub channels [pattern]

2.为什么定义模式而不让频道直接支持模式?

3.pubsub numsub  [channel-1 ... channel-n]

4.pubsub numpat

[展开全文]

1.a频道1发送消息,c订阅频道1和模式1

2.subscribe channel [channel ...]

3.psubscribe pattern[pattern...]

4.unsubscribe channel [channel ...]

5.punsubscribe pattern[pattern...]

[展开全文]

1.set key value [ex seconds]

2.set key value [px milliseconds]

[展开全文]

1.expire key seconds

2.pexpire key milliseconds

3.expireat key timestamp

4.pexpire key milli-timestamp

5.ttl key

6.pttl key

7.persist key



[展开全文]

1.pfadd key element [element ...]

2.pfcount key [key ...]

3.pfmerge destkey sourcekey [sourcekey ...]

[展开全文]
niuhp · 2014-12-03 · HyperLogLog 0

1.zunionstore destkey numkeys key [key ...]

2.zinterstore destkey numkeys key [key ...]

[展开全文]

1.zrange key start stop [withscores]

2.zrevrange key start stop [withscores]

3.zrangebyscore key min max [withscores] [limit offset count]

4.zrevrangebyscore key min max [withscores] [limit offset count]

5.zcount key min max

6.zremrangebyrank key start stop

7.zremrangebyscore key min max



[展开全文]

1.zadd key score element [[score element]...]

2.zrem key element [element ...]

3.zscore key element

4.zincrby key increment element

5.zcard key

6 zrank key element

7.zrevrank key member




[展开全文]

1.sdiff key [key...]

2.sdiffstore destkey key [key...]

3.sinter key [key ...]

4.sinterstore destkey key [key...]

5.sunion key [key ...]

6.sunionstore destkey key [key...]

[展开全文]
niuhp · 2014-12-03 · 集合键(下) 0

1.sadd key element [element...]

2 srem key element [element...]

3.sismember key element

4.scard key

5.smembers key

6.spop key

7.srandmember key [count]




[展开全文]
niuhp · 2014-12-03 · 集合键(上) 0

1.即使bit位数很多,占用内存也很小,复杂度O(1)!



[展开全文]
http://redisdoc.com/string/setex.html
[展开全文]

1.NX = net exist,XX=?

2.为什么定义负数索引和DECR?

3.只有INCRBYFLOAT没有DECRBYFLOAT


[展开全文]

授课教师

黄健宏2011 年开始接触 Redis,一直在学习和研究 Redis ,在文档、源码和书籍方面做了各式各样与 Redis 有关的工作。从 R...