~/talk

How to write your own CakePHP cache engine with automatic failover

Talkat CakeFest 2015 · 2015-05-28..05-31· [php]
links:none on file
slides:none on file

Custom CakePHP cache code creates a Redis tree cache engine that breaks colon-separated keys into path nodes, stores those nodes in Redis sets, and lets a single delete on a node issue a KEYS pattern match to remove thousands of descendant keys at once (with a note to prefer SCAN for large data). A simple Fallback active-passive engine delegates to Redis primary and file secondary via init, catches write errors, and successfully keeps the app running during Redis outages.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:04Custom cache engine basics
  3. 3:42Developing a custom engine
  4. 7:56Redis tree cache strategy
  5. 16:02Implementing failover cache
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.