Redis
本书简价
1. Redis
1.1 Install
Install for Mac
Install from SourceCode
Install for Windows
1.2 Redis Bash
redis-server
redis-cli
1.3 Redis持久化
RDB方式持久化
AOF方式持久化
1.4 Redis Master/Slave
Redis 主从配置
Redis 哨兵模式Sentinel
Redis 哨兵模式Sentinel部署
Redis Replication Sentinel Cluster
2. Commands
2.1 Connection
2.2 keys命令
KEYS
DEL
EXISTS
TTL
EXPIRE
TYPE
SCAN
2.3 Server
INFO
DBSIZE
SAVE
BGSAVE
LASTSAVE
2.4 Strings
SET
SETEX
PSETEX
SETNX
GET
APPEND
MSET
MSETNX
MGET
GETSET
模式
INCR
模式:计数器
模式:限速器
INCRBY
DECR
DECRBY
2.5 Lists
LPUSH
LPUSHX
LPOP
RPUSH
RPUSHX
RPOP
LLEN
LINDEX
LRANGE
LSET
LTRIM
LINSERT
RPOPLPUSH
BLPOP
BRPOP
BRPOPLPUSH
2.6 Hashes
HSET
HSETNX
HGET
HGETALL
HMSET
HMGET
HDEL
HEXISTS
HKEYS
HLEN
HVALS
HSTRLEN
HINCRBY
HINCRBYFLOAT
HSCAN
2.7 Sets
SADD
SCARD
SDIFF
SDIFFSTORE
SINTER
SINTERSTORE
SISMEMBER
SMEMBERS
SMOVE
SPOP
SRANDMEMBER
SREM
SUNION
SUNIONSTORE
SSCAN
2.7 Pub/Sub
PUBLISH
SUBSCRIBE
PSUBSCRIBE
UNSUBSCRIBE
PUNSUBSCRIEB
PUBSUB
3. Jedis
3.1.1 Jedis基本应用
3.1.2 使用连接池JedisPool
3.1.3 高可用连接JedisSentinelPoll
3.1.4 客户端分片连接ShardedJedisPool
3.1.5 Jedis Strings 操作
3.1.6 Jedis Lists Demos
3.1.7 Jedis Hashes Demos
3.1.8 Jedis Set Demos
4. Spring Data Redis
5. Redis Tools
5.1 Redis Desktop Manager
Redis Client
Redis Studio
Powered by
GitBook
2.7 Pub/Sub
1.
Pub/Sub
1. Pub/Sub
Redis支持 发布/订阅 模式。
PUBLISH channel message - 在指定频道发布消息
SUBSCRIBE channel [channel ...] - 订阅频道消息
PSUBSCRIBE pattern [pattern ...] - 订阅一个或多个符合指定模式的频道
UNSUBSCRIBE channel [channel ...] - 退订频道消息
PUNSUBSCRIBE pattern [pattern ...] - 退订指定模式频道
PUBSUB - 查看订阅与发布系统状态
results matching "
"
No results matching "
"