Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Stupid Cache Tricks
Search
Tim Morton
November 13, 2014
Programming
52
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stupid Cache Tricks
A bag of tricks for managing your memcache
Tim Morton
November 13, 2014
Other Decks in Programming
See All in Programming
Agents on Rails - Rails at Scale 2026
irinanazarova
0
560
JIS keyboard support in Omarchy
lef237
0
120
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
すこし踏み込む CancellationToken
htkym
2
1.7k
ジョジョの世界をXRで再現する
mofurune
0
160
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
0
210
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Designing Experiences People Love
moore
143
24k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Transcript
Stupid Cache Tricks Tim Morton @tmorton
Stupid Cache Tricks
Smart Cache Tricks •Measure •Optimize •Measure again
Smart Cache Tricks • Rails Guide • http://guides.rubyonrails.org/caching_with_rails.html • Basecamp
Next Architecture • https://signalvnoise.com/posts/3112-how-basecamp-next-got-to-be-so-damn-fast- without-using-much-client-side-ui
None
Cache Read Write “Foo” Read Write “Bar” Process 1 Process
2 Race Condition
cas
add
Other Atomic Operations • Counters (incr/decr) • Lists (prepend) •
http://www.rubydoc.info/github/mperham/dalli/Dalli/Client
Concurrency is hard Let’s skip it
Switch Keys
Simple Values