Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Support TTL #11

Closed
WyriHaximus opened this issue Jul 6, 2016 · 3 comments · Fixed by #29
Closed

[RFC] Support TTL #11

WyriHaximus opened this issue Jul 6, 2016 · 3 comments · Fixed by #29

Comments

@WyriHaximus
Copy link
Member

I've been thinking about how we can improve caching and what I would really like to see is TTL support in cache adapters. With that the DNS component only store a message contents in the cache and gives it a TTL. The DNS component also doesn't have to do the GC as that becomes the responsibility of the adapter. In cache of a redis adapter redis can take care of that. But for the array cache another mechanism has to be devised.

@clue
Copy link
Member

clue commented Jul 6, 2016

@WyriHaximus
Copy link
Member Author

That would be awesome. I gladly create a PR for that when it gets accepted.

@WyriHaximus
Copy link
Member Author

@clue FYI PSR-16, the simple cache PSR, has gone into review: https://groups.google.com/forum/#!msg/php-fig/kSj_yVbkwOw/xVhW1D2FAwAJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants