Currently I have written a backend wrapper which adds support for tags
in backends like memcached and APC. This makes use of a SQLite database
that stores the tags. But it also stores the tags in the cache backend.
---
Regards,
Pieter Kokx
MaakSite.net
PHP Developer
Nico Edtinger schreef:
Wouldn't storing the tags in a file for backup solve the problem?
You'd have to write twice for the tags, but you may have the speed of
memcache with the reliability of the file storage.
Of course something like the new ezcCacheStack class as base for such
a solution would even be better.
nico
Am 05.06.2008 um 14:40 schrieb Fabien MARTY:
Hi
Of course, we can do it. But the problem is :
"you can't control when APC or memcache drop valid cache records (when
there is no memory available for example...)".
It's not easy to find a reliable solution with APC, Xcache or
memcache for this.
2008/6/4 Pieter Kokx <[EMAIL PROTECTED]>:
Hello,
Today I was thinking about tags in the memcached and APC backends for
Zend_Cache. Because it should be possible to do that. I know that
there is
no native way in the APIs of both cache systems, but why don't we
make an
array with the tags information, serialize it and provide it to the
backend
with an ID like '__Zend_Cache_Tags'?
It would improve the functionality for Zend_Cache a lot, and I think
that a
lot of people will find this usefull.
I think that this could also affect the new XCache backend, so there
are
also tags available for the XCache backend.
--
Regards,
Pieter Kokx
MaakSite.net
PHP Developer
--
Fabien MARTY
[EMAIL PROTECTED]