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.
| Labels |
Added:
?
|
||
| Category | ⇒ | Cache Libraries |
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-01 13:15:34 |
| Closed_By | ⇒ | mbabker |
cause of #13452 this Issue can be closed?