I'm trying to namespace/prefix apcu pool but I'm running into different problems due not implemented interfaces.
creating namespaced apcu pool fails
return new NamespacedCachePool(new ApcCachePool(), $prefix);
because NamespacedCachePool constructor takes in HierarchicalPoolInterface which ApcCachePool does not implement
If I would like to use tags with NamespacedCachePool or NamespacedCachePool which wrap some Pool that implements TaggableCacheItemPoolInterface but this is not possible
$cache = new PrefixedCachePool(new ApcCachePool(), 'prefix');
...
$cache->invalidateTag('myAwesomeTag');
Call to undefined method Cache\Prefixed\PrefixedCachePool::invalidateTag()
The text was updated successfully, but these errors were encountered:
I'm trying to namespace/prefix apcu pool but I'm running into different problems due not implemented interfaces.
because
NamespacedCachePool
constructor takes inHierarchicalPoolInterface
whichApcCachePool
does not implementNamespacedCachePool
orNamespacedCachePool
which wrap some Pool that implementsTaggableCacheItemPoolInterface
but this is not possibleCall to undefined method Cache\Prefixed\PrefixedCachePool::invalidateTag()
The text was updated successfully, but these errors were encountered: