Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Redis for fun and profit
Search
mattg
August 25, 2012
Technology
170
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Redis for fun and profit
A simple overview of redis
mattg
August 25, 2012
Transcript
35 slides
Redis matt george 8/25/2012 Saturday, August 25, 12
@binarydud http://github.com/binarydud/redis-fun Saturday, August 25, 12
Redis is not ... Saturday, August 25, 12
Redis is not ... a replacement for your database. or
necessarily fault tolerant. Saturday, August 25, 12
WTF Saturday, August 25, 12
what is it? Saturday, August 25, 12
Key-Value Store Saturday, August 25, 12
Key-Value Store Data Structure Server Saturday, August 25, 12
why? Saturday, August 25, 12
if you... need key value store that’s very fast. have
a dataset that can fit into ram. are ok if not everything survives. Redis is very interesting! Saturday, August 25, 12
Data structure basics Saturday, August 25, 12
Strings Saturday, August 25, 12
String Basics SET key value GET key SETEX key seconds
value APPEND key value Saturday, August 25, 12
redis>get hello (nil) redis> set hello world OK redis>get hello
“world” String Basics Saturday, August 25, 12
String Basics INCR key DECR key INCRBY key value DECRBY
key value Saturday, August 25, 12
String Basics redis>incr stat1 1 redis> incrby stat1 2 3
redis> decr stat1 2 redis> get stat1 2 Saturday, August 25, 12
String Patterns session handling caching counter/stats Saturday, August 25, 12
Lists Saturday, August 25, 12
Lists LPUSH key value (B)LPOP key LRANGE key start stop
LLEN key LSET key index value LINDEX key index Saturday, August 25, 12
List Patterns stacks queues message passing Saturday, August 25, 12
Sets Saturday, August 25, 12
Sets SADD key member SREM key member SISMEMBER key member
SMEMBERS key SCARD key Saturday, August 25, 12
Hashes Saturday, August 25, 12
Hashes HSET key field value HDEL key field HKEYS keys
HLEN key HGETALL key Saturday, August 25, 12
Other Interesting Commands KEYS pattern DEL key RENAME key newkey
EXISTS key EXPIRE key PERSIST key Saturday, August 25, 12
Pub/Sub Saturday, August 25, 12
Pub/Sub SUBSCRIBE channel ... UNSUBSCRIBE channel ... PUBLISH channel message
Saturday, August 25, 12
Administration Saturday, August 25, 12
Persistence AOF Snapshots Saturday, August 25, 12
Replication master/slave slave chaining Saturday, August 25, 12
Server Commands redis> BGREWRITEAOF redis> BGSAVE redis> DBSIZE redis> INFO
redis> FLUSHALL redis> SLAVEOF host port Saturday, August 25, 12
Benchmarks SET: 47709.93 requests per second GET: 49900.20 requests per
second INCR: 47801.15 requests per second LPUSH: 49188.39 requests per second LPOP: 48355.90 requests per second SADD: 46970.41 requests per second SPOP: 50581.69 requests per second LPUSH: 47755.49 requests per second Saturday, August 25, 12
Demo Time aka, watch Matt flail in the command line
Saturday, August 25, 12
Caveats Saturday, August 25, 12
Questions? http://redis.io Saturday, August 25, 12
More Decks by mattg
See All by mattg
Open Source
mattg
3
220
Other Decks in Technology
See All in Technology
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
1
480
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
2
390
AIで実装が加速したのに、 なぜ私は仕事の大半で人と話し続けていたのか?
say_no_w
0
180
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
15
26k
Quick Automate | 目指せ Quick マスター 12
inariku
PRO
1
120
3文字略語に騙されない! 世界一わかりやすい『EDR』超入門
kamadamakoto
1
240
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
1
190
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
460
CloudTrail を推したい
kazzpapa3
0
120
Sonnetだけで業務はまわる?
kintotechdev
1
140
高品質と高スピードを支える品質のシフトレフトのアプローチ
goyoki
4
1.6k
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
390
Featured
See All Featured
Optimizing for Happiness
mojombo
378
71k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Building an army of robots
kneath
307
47k
The Cult of Friendly URLs
andyhume
79
7.1k
Speed Design
sergeychernyshev
33
2.2k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Color Theory Basics | Prateek | Gurzu
gurzu
1
520
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
930