[TYPO3-team-core-v5] Caching Framework: Tagging of key-value caches

Robert Lemke robert at typo3.org
Wed Apr 3 10:36:24 CEST 2013


Hi Philipp,

On 02.04.2013, at 17:53, Philipp Gampe <philipp.gampe at typo3.org> wrote:

> Christian suggested to just drop the taggable interface for those backends 
> to simplify the backend by a big deal.
> This relates to APC, Wincache, Xcache, Yac, etc
> 
> Of course we should keep this consistent between CMS and Flow.
> 
> People can always extend the original backend and implement just the 
> taggable interface for a custom backend if they really need tags for simple 
> key-value data.

In Flow we have the TaggableBackendInterface which is implemented by most
backends. For performance reasons there is, for example, an tag-less alternative
to the FileBackend which is called SimpleFileBackend. We use it for storing rather
static data, such as our proxy classes.

Dropping tag support for the backends which already provide tagging functionality
is not really an option as it would break backwards compatibility. But it would be just
fine to create new backends which do without tagging and let the more complex
backends with tag support extend these more simple backends.

We could for example introduce a SimpleApcBackend which becomes the super class
of ApcBackend.

Would that be an option for you?

Cheers,
Robert


More information about the TYPO3-team-core-v5 mailing list