?
avatar mbabker
mbabker
14 Nov 2016

The PSR-6 spec for a cache item pool (very loosely translated to our JCacheStorage adapters) includes a public function hasItem($key); method in its interface which is a way to check if the cache contains an item with that key. JCache doesn't have a comparable interface method.

This can be useful for checking the presence of a cache item before making a get call, especially as many adapters have more efficient methods corresponding to this intent.

avatar mbabker mbabker - open - 14 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 21 Nov 2016
Category Cache Libraries
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Feb 2017

cause of #13452 this Issue can be closed?

avatar mbabker mbabker - change - 1 Feb 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-02-01 13:15:34
Closed_By mbabker
avatar mbabker mbabker - close - 1 Feb 2017

Add a Comment

Login with GitHub to post a comment