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 - From LAMP to NOSQL
Search
York Tsai
October 11, 2011
Programming
0
300
Redis - From LAMP to NOSQL
Cloud.tw Meetup
York Tsai
October 11, 2011
Tweet
Share
More Decks by York Tsai
See All by York Tsai
Real-time Web Application with Socket.IO, Node.js, and Redis
yorktsai
10
3.6k
Other Decks in Programming
See All in Programming
Webサーバーサイド言語としてのRustについて
kouyuume
1
5.1k
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
18k
AI時代に必須!状況言語化スキル / ai-context-verbalization
minodriven
2
330
CSC305 Lecture 14
javiergs
PRO
0
220
Verilator + Rust + gRPC と Efinix の RISC-V でAIアクセラレータをAIで作ってる話 RTLを語る会(18) 2025/11/08
ryuz88
0
220
CSC305 Lecture 11
javiergs
PRO
0
320
O Que É e Como Funciona o PHP-FPM?
marcelgsantos
0
250
ビルドプロセスをデバッグしよう!
yt8492
0
240
Pythonに漸進的に型をつける
nealle
1
150
CSC509 Lecture 09
javiergs
PRO
0
290
When Dependencies Fail: Building Antifragile Applications in a Fragile World
selcukusta
0
120
ドメイン駆動設計のエッセンス
masuda220
PRO
15
7.4k
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Site-Speed That Sticks
csswizardry
13
940
Designing for humans not robots
tammielis
254
26k
Scaling GitHub
holman
463
140k
Product Roadmaps are Hard
iamctodd
PRO
55
11k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
950
Into the Great Unknown - MozCon
thekraken
40
2.1k
Context Engineering - Making Every Token Count
addyosmani
8
340
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Side Projects
sachag
455
43k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
640
Transcript
York Tsai, http://about.me/yorktsai From LAMP to NoSQL
What is Redis?
REmote DIctionary Server Redistribute
Memcache with rich data structure
Why Redis?
Our Database
None
None
Performance
http://www.ruturaj.net/redis-memcached-tokyo-tyrant-mysql- comparison
http://antirez.com/post/redis-memcached-benchmark.html
Rich Data Structure
None
Well-Documented with Time-Complexity!!
Zero-Configuration > Make
Examples
Cache a value
Cache a value, DEL/EXPIRE a set redis > EXPIRE myhash
3600 (integer) 1 redis > DEL myhash (integer) 1
List / Queue / Stack
Sets
Sorted Sets
Real-World Examples
Cache Statistics https://gist.github.com/1272511
Cache X Recent Records https://gist.github.com/1272508
When not to Use Redis?
If your data cannot fit into memory. (MMap is no
longer supported after 2.6)
Frequently Asked Questions
Multi-core? Open multiple instances
Persistence? Append-only Files (Or Snapshot)
Replication? Master-Slave
Transaction? MULTI / EXEC + WATCH
Not in this talk • Pub/Sub (publish / subscribe) •
Redis Cluster (Incoming)
Thank You!