The cache stores an expensive result for reuse (database, Redis, files). Cache::remember returns the cached value or computes it and stores it for a duration. Remember to invalidate it when the source data changes.
Example
$total = Cache::remember('total', 600, fn () => Commande::count());