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
170
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
200
Other Decks in Technology
See All in Technology
ADK + Gemini Enterprise で 外部 API 連携エージェント作るなら OAuth の仕組みを理解しておこう
kaz1437
0
130
Agent Skill 是什麼?對軟體產業帶來的變化
appleboy
0
190
AgentCoreとLINEを使った飲食店おすすめアプリを作ってみた
yakumo
2
170
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
kaomi_wombat
0
210
visionOS 開発向けの MCP / Skills をつくり続けることで XR の探究と学習を最大化
karad
1
1.2k
LINEヤフーにおけるAIOpsの現在地
lycorptech_jp
PRO
5
2k
Phase08_クイックウィン実装
overflowinc
0
1.1k
夢の無限スパゲッティ製造機 #phperkaigi
o0h
PRO
0
330
コンテキスト・ハーネスエンジニアリングの現在
hirosatogamo
PRO
6
710
生成AIで速度と品質を両立する、QAエンジニア・開発者連携のAI協調型テストプロセス
shota_kusaba
0
370
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
3
13k
SaaSに宿る21g
kanyamaguc
2
110
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
Music & Morning Musume
bryan
47
7.1k
RailsConf 2023
tenderlove
30
1.4k
Building an army of robots
kneath
306
46k
It's Worth the Effort
3n
188
29k
Code Reviewing Like a Champion
maltzj
528
40k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
52k
Utilizing Notion as your number one productivity tool
mfonobong
4
270
Ethics towards AI in product and experience design
skipperchong
2
230
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
150
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
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