Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[FrameworkBundle] Added a keep-in-memory option for cache adapters #30984
chaining can introduce subtle desynchronization effects because the upper pools don't know when the items in lower pools are invalidated. That's true for the remaining expiration time but also for tag-based invalidation.
An idea could be to default to using a 1s local cache when tags are not used.
This makes me think we should forbid using tags+keep-in-memory together, and that we should make keep-in-memory an integer, that would default to 1, which would set the number of seconds the local pool keeps items when the real expiration date is unknown.