Laravel theorytheory 0/50 · 0%
Performance · medium

24. Caching

Speeding up repeated reads.

The Cache facade provides a unified API over drivers like Redis, Memcached, and the file/database cache. Cache::remember('key', $ttl, fn() => expensiveQuery()) caches a value only if it isn't already cached. Cache tags (on supporting drivers) allow grouping and bulk-invalidating related cache entries.

Check your understanding

  1. 1. What does Cache::remember() do?

  2. 2. Which drivers support cache tags?