Symfony Cache: a premium recipe to fast apps
summary
Symfony Cache implements PSR-6 with ready adapters for Redis, Memcached and PDO, and adds practical features: a new get(key, callable, beta) API that wraps fetch/compute/save, built-in locking and exponential early-expiry (beta default 1) to prevent stampedes, tag invalidation and chain backends, PHP/OPcache file backends and a modular serializer including igbinary serializer support. Benchmarks show PHP can fetch ~55 items/ms. Works standalone or wired by Symfony Flex; components and Contracts provide interoperable interfaces already used in system caches.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:03PSR-6 cache standard overview
- 7:48Symfony Cache implementation
- 12:07Local and remote backends
- 16:28Cache invalidation strategies
- 19:20New features: IGBinary and modular interface
- 22:14Cluster support and standalone component
- 24:21Default cache configuration
- 27:51Cache helper method and boilerplate
- 30:47Cache stampede problem and solutions
- 38:42Symfony Contracts for decoupling
- 40:28Q&A session
related talks
23mSf Cache Component: Speed Up Your App with a New Cache Layer
29mCaching with PSRs
48mBuilding Really Fast Applications
02h 37mSymfony 4 best practices (Part 2)
39mKeynote: Symfony without the Framework Bundle
37mDemystifying cache in Doctrine ORM
01h 04mCaching Best Practices
18mCakePHP cache engine analysis
