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
Would you THINK such a demonstration interesting ?
shumpei3
1
200
LangChainとLangGiraphによるRAG・AIエージェント実践入門「10章 要件定義書生成Alエージェントの開発」輪読会スライド
takaakiinada
0
130
20250413_湘南kaggler会_音声認識で使うのってメルス・・・なんだっけ?
sugupoko
1
450
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
coconala_engineer
1
280
Porting PicoRuby to Another Microcontroller: ESP32
yuuu
3
330
Рекомендации с нуля: как мы в Lamoda превратили главную страницу в ключевую точку входа для персонализированного шоппинга. Данил Комаров, Data Scientist, Lamoda Tech
lamodatech
0
660
技術者はかっこいいものだ!!~キルラキルから学んだエンジニアの生き方~
masakiokuda
2
240
CloudWatch 大好きなSAが語る CloudWatch キホンのキ
o11yfes2023
0
140
自分の軸足を見つけろ
tsuemura
2
680
10分でわかるfreeeのQA
freee
1
12k
サーバレス、コンテナ、データベース特化型機能をご紹介。CloudWatch をもっと使いこなそう!
o11yfes2023
0
130
От ручной разметки к LLM: как мы создавали облако тегов в Lamoda. Анастасия Ангелова, Data Scientist, Lamoda Tech
lamodatech
0
660
Featured
See All Featured
The Language of Interfaces
destraynor
157
24k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Into the Great Unknown - MozCon
thekraken
37
1.7k
Being A Developer After 40
akosma
91
590k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
520
Code Review Best Practice
trishagee
67
18k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
19
1.1k
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