Another issue that we have now in current cache and cache-util is complete missing of null-object.
In Psr/Log we have NullLogger, why we can't have NullCache? There are situations, when we dont' know 100%, that there or here we need cache. Or we know, that we need cache there, but for some time we can live without it. Cache could be an optional dependency. It's a bitter thought, but it's a truth. So I suggest to add to Psr/Simple cache default NullCache as just /dev/null or BlackWhole implementation. Examples: - https://github.com/symfony/cache/blob/master/Adapter/NullAdapter.php - https://github.com/tedious/Stash/blob/master/src/Stash/Driver/BlackHole.php Same as https://github.com/php-fig/log/blob/master/Psr/Log/NullLogger.php Use case Cache as an optional injectable dependency. When class user not provides it -- we take ready NullCache and use it. среда, 16 ноября 2016 г., 21:22:20 UTC+7 пользователь Jordi Boggiano написал: > > Heya, > > We believe PSR-16, Simple Cache, is now ready for final review. As > coordinator, I hereby open the mandatory review period prior to a formal > acceptance vote; voting will begin no earlier than December 1st, 2016. > > Here are links to the most current version and its meta document: > > > https://github.com/php-fig/fig-standards/blob/1cf169c66747640c6bc7fb5097d84fbafcd00a0c/proposed/simplecache.md > > > > https://github.com/php-fig/fig-standards/blob/1cf169c66747640c6bc7fb5097d84fbafcd00a0c/proposed/simplecache-meta.md > > > > The package containing the interfaces is there: > > https://github.com/php-fig/simplecache > > > The latest important changes to the interfaces can be found at: > > https://github.com/php-fig/simplecache/releases/tag/0.2.0 > > > And FWIW, Scrapbook already provides a PSR-16 implementation in its > upcoming release: > > https://github.com/matthiasmullie/scrapbook/blob/master/src/Psr16/SimpleCache.php > > > > Thanks for your time reviewing! > > Cheers > > -- > Jordi Boggiano > @seldaek - http://seld.be > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/b67406ac-5227-456d-a7c3-f65523bf527d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
