Commit Graph

2 Commits

Author SHA1 Message Date
Jesse Jackson
4ab37ea779
docs(cache): document valid range information for TTL values (#5834)
* docs(cache): document valid range information for TTL values

* add test for documented TTL range

* tweaks

* Apply suggestions from code review

Co-authored-by: Jesse Jackson <jsejcksn@users.noreply.github.com>

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-27 00:08:34 +00:00
lionel-rowe
2a0f5118c2
feat(cache/unstable): TtlCache (#5662)
* feat(cache/unstable): add TTL (time-to-live) cache

* Implement code review changes

* Simplify timeout logic

* Update cache/ttl_cache.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Properly handle cleanup of timeouts

* chore: add experimental note

* Add test for [Symbol.toStringTag]

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-21 10:45:16 +00:00