You Should Use ISO-8601 for Time Durations
Cache TTL
In writing cache logic, we often need to specify a time duration for the cache to expire. It's called TTL, or "Time To Live." Considering the following code:
Cache::remember(key: 'all-users', ttl: 60 * 60 * 24, function () {
return User::...
blog.binota.org4 min read