Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Set cache item TTL to maximum TTL in the set of its entries. #85

Closed
wants to merge 1 commit into from

Conversation

derekmarcotte
Copy link

This will help with out-of-band garbage collection (e.g. redis) of
Guzzle cache entries, as they default to no TTL, even if all of the
entries are expired.

If the set of entries is empty, it sets 1 as the TTL for the cache item,
so that it is expired immediately.

This will help with out-of-band garbage collection (e.g. redis) of
Guzzle cache entries, as they default to no TTL, even if all of the
entries are expired.

If the set of entries is empty, it sets 1 as the TTL for the cache item,
so that it is expired immediately.
@GrahamCampbell
Copy link
Member

Thanks for the PR, but I'm going to close this since this repo has been EOL for a while now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants