You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Niklas Keller, Christian Lück and Maik Penz
Activity
clue commentedon Jul 6, 2016
👍
See also the upcoming SimpleCache PSR: https://www.reddit.com/r/PHP/comments/4mq1ff/psrsimplecache_you_asked_for_a_simple_caching/
WyriHaximus commentedon Aug 5, 2016
That would be awesome. I gladly create a PR for that when it gets accepted.
WyriHaximus commentedon Nov 16, 2016
@clue FYI PSR-16, the simple cache PSR, has gone into review: https://groups.google.com/forum/#!msg/php-fig/kSj_yVbkwOw/xVhW1D2FAwAJ