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
Search
Akshay Rawat
April 16, 2013
Programming
2
270
Redis
A Quick Intro
Akshay Rawat
April 16, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
130
CSC307 Lecture 08
javiergs
PRO
0
670
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
340
CSC307 Lecture 02
javiergs
PRO
1
770
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
990
CSC307 Lecture 05
javiergs
PRO
0
500
AgentCoreとHuman in the Loop
har1101
5
230
Architectural Extensions
denyspoltorak
0
280
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
150
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
For a Future-Friendly Web
brad_frost
182
10k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Become a Pro
speakerdeck
PRO
31
5.8k
Building the Perfect Custom Keyboard
takai
2
680
BBQ
matthewcrist
89
10k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
Docker and Python
trallard
47
3.7k
Prompt Engineering for Job Search
mfonobong
0
160
Abbi's Birthday
coloredviolet
1
4.7k
Transcript
Redis
DATA STRUCTURES Strings, Lists, Sets, Sorted Sets, Hashes IPC Shared
Memory, MQs, Semaphores, PubSub Caching Expiration, Eviction Policies
Time Complexity O(1) < O(log(n)) < O(n) < O(n^2) ..
Containers String, Doubly Linked Lists, Skip Lists, Hash Tables ... Guaranteed, Mathematically Predictable Specialized C data structures Varies based on storage pattern
LIST Data Structure: Doubly Linked Lists Strengths: Time Complexity O(1)
operations LPUSH LPOP RPUSH RPOP LPUSHX RPUSHX LTRIM Capped collections: Logs, Activity Feeds
LIST Strengths: IPC operations BLPOP BRPOP BRPOPLPUSH Blocking Atomic EM
implementations Light weight APMQ replacement
SET Strengths: Set Operations SINTER SUNION SISMEMBER Is a friend?
Common Friends. All friends of A & B. People who bought this, also bought ... Data filtering - eg. Blog Tags, N Dimension
SORTED SET Strengths: Scores and Ranks ZRANGEBYSCORE ZRANGE ZCOUNT ZRANK
ZREMRANGEBYSCORE ZREMRANGEBYRANK Leader boards - Top something lists. Priority Queues
IPC Named Channels. ActiveSupport Notifications like API Pub Sub SUBSCRIBE
PSUBSCRIBE PUBLISH Simple Semaphores / Distributed Locks String SETNX
In Short Redis is feature rich, but not a swiss
knife ~Time & Memory complexity Single Threaded / Single Core Utilization Memory complexity is a funky blackbox Persistence strategy - a work in progress