Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefixed-cache and namespaced-cache issues with ApcuCachePool #128

Open
aldas opened this issue Apr 19, 2018 · 0 comments
Open

prefixed-cache and namespaced-cache issues with ApcuCachePool #128

aldas opened this issue Apr 19, 2018 · 0 comments

Comments

@aldas
Copy link

@aldas aldas commented Apr 19, 2018

I'm trying to namespace/prefix apcu pool but I'm running into different problems due not implemented interfaces.

  1. creating namespaced apcu pool fails
    return new NamespacedCachePool(new ApcCachePool(), $prefix);

because NamespacedCachePool constructor takes in HierarchicalPoolInterface which ApcCachePool does not implement

  1. 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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.