glloevyp@163.com                   1
Key-Value Store(in memory)                             2
Data structure server    •   String    •   List    •   Set    •   Sorted set    •   Hash    http://redis.io/commands      ...
Persistence• snapshot• aof+rewrite                4
Transactions • Multi • Commands • Exec/discard                  5
Pipeline           6
Pub/Sub• Publish channel mesg• (p)subscribe/(p)unsubscribe channel1 [channel2…]                                           ...
Master/Slave               8
Consistent hashing algorithm  • Add a node  • Remove a node         A  B               C                               9
Redis clients• c/c++/object-c/c#/java/lua/node.js/perl/php/python/ruby/go…• Hiredis:    • redisContext *conn = redisConnec...
Apply to clivia                  11
Apply to clivia                  12
Upcoming SlideShare
Loading in …5
×

Redis

306 views
277 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
306
On SlideShare
0
From Embeds
0
Number of Embeds
63
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Redis

  1. 1. glloevyp@163.com 1
  2. 2. Key-Value Store(in memory) 2
  3. 3. Data structure server • String • List • Set • Sorted set • Hash http://redis.io/commands 3
  4. 4. Persistence• snapshot• aof+rewrite 4
  5. 5. Transactions • Multi • Commands • Exec/discard 5
  6. 6. Pipeline 6
  7. 7. Pub/Sub• Publish channel mesg• (p)subscribe/(p)unsubscribe channel1 [channel2…] 7
  8. 8. Master/Slave 8
  9. 9. Consistent hashing algorithm • Add a node • Remove a node A B C 9
  10. 10. Redis clients• c/c++/object-c/c#/java/lua/node.js/perl/php/python/ruby/go…• Hiredis: • redisContext *conn = redisConnect(host, port) • redisReply *reply = redisCommand(conn, cmd) • freeReplyObject(reply) • redisFree(conn) 10
  11. 11. Apply to clivia 11
  12. 12. Apply to clivia 12

×