Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Redis for fun and profit
Search
mattg
August 25, 2012
Technology
2
160
Redis for fun and profit
A simple overview of redis
mattg
August 25, 2012
Tweet
Share
More Decks by mattg
See All by mattg
Open Source
mattg
3
190
Other Decks in Technology
See All in Technology
急成長を支える基盤作り〜地道な改善からコツコツと〜 #cre_meetup
stefafafan
0
120
低レイヤを知りたいPHPerのためのCコンパイラ作成入門 完全版 / Building a C Compiler for PHPers Who Want to Dive into Low-Level Programming - Expanded
tomzoh
4
3.2k
HiMoR: Monocular Deformable Gaussian Reconstruction with Hierarchical Motion Representation
spatial_ai_network
0
110
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
140
生成AI時代 文字コードを学ぶ意義を見出せるか?
hrsued
1
310
Кто отправит outbox? Валентин Удальцов, автор канала Пых
lamodatech
0
340
BrainPadプログラミングコンテスト記念LT会2025_社内イベント&問題解説
brainpadpr
1
160
Observability в PHP без боли. Олег Мифле, тимлид Altenar
lamodatech
0
350
生成AIで小説を書くためにプロンプトの制約や原則について学ぶ / prompt-engineering-for-ai-fiction
nwiizo
4
1.6k
M3 Expressiveの思想に迫る
chnotchy
0
100
生成AI時代の開発組織・技術・プロセス 〜 ログラスの挑戦と考察 〜
itohiro73
0
150
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
150
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
KATA
mclloyd
29
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
It's Worth the Effort
3n
185
28k
Building Applications with DynamoDB
mza
95
6.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
Designing for Performance
lara
609
69k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Statistics for Hackers
jakevdp
799
220k
Transcript
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