---
title: "Discussion on \"You Should Use ISO-8601 for Time Durations\" | Hashnode"
description: "Discussion on \"You Should Use ISO-8601 for Time Durations\". Cache TTL\nIn 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:\nCache::remember(key: 'all-users', ttl: 60 * 60 * 24, function () {\n  return User::..."
url: "https://hashnode.com/posts/you-should-use-iso-8601-for-time-durations/63bd148c0581db66f7f915f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [You Should Use ISO-8601 for Time Durations](https://blog.binota.org/you-should-use-iso-8601-for-time-durations?utm_source=hashnode&utm_medium=feed)

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::...

Jan 10, 2023 · 4 min read · blog.binota.org  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#dx](https://hashnode.com/tag/dx)
-   [#php](https://hashnode.com/tag/php)
-   [#datetime](https://hashnode.com/tag/datetime)

## Written by

[BinotaLIU](https://hashnode.com/@binotaliu)

@binotaliu

  
[View profile](https://hashnode.com/@binotaliu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
