Cache Entry Release After TTL for Memory Management

Is there a way for a cache to "release" an entry after ttl (mainly for memory reasons)?

I was doing a bit of experimenting here https://effect.website/play#f6a008b33b01

and I can see that after the expiration time of all elements the cache stats size is the same
Was this page helpful?