Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Redis may not be used as cache, why not provide a global redis resource manager? #121

Closed
snowwolf007cn opened this issue Oct 31, 2016 · 3 comments

Comments

@snowwolf007cn
Copy link

We may not use redis just as a cache storage, but also a db backend. So why not provide redis resource as a global redis resource manager?

@marc-mabe
Copy link
Member

Hi,

The resource managers are available in zend-cache just because this component requires the resources to work and to make recourses reusable over different cache instances as zend-cache is designed to have one instance per item type.

You can of course use the resource manager also as global and you can also inject an existing resource into it.

Btw. I have opened a ticket some time ago to fully remove the resource managers, move this logic to somewhere else (like service manager) and let zend-cache injection the resources directly. But this is not well discussed until now.

@marc-mabe
Copy link
Member

See #24

@marc-mabe
Copy link
Member

I'm closing this now as the main ticket is #24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants