community / cacheextensions
There is no license information available for the latest version (dev-master) of this package.
Package info
github.com/mneuhaus/Community.CacheExtensions
Type:typo3-flow-package
pkg:composer/community/cacheextensions
dev-master
2013-08-27 09:13 UTC
Requires
- typo3/flow: *
This package is auto-updated.
Last update: 2026-03-05 21:16:32 UTC
README
This Package is meant to help you cache you application to the maximum potential.
Example:
// fetch your Cache $cache = $this->cacheManager->getCache('My_Cache'); $entity = new \My\Domain\Model\Entity(); $entity->setName('Foo'); $this->persistenceManager->update($entity); $identifier = 'MyOutputThatDependsOnThatEntity' . $this->cacheIdentityService->getIdentifierByObject($entity); if (!$cache->has($identifier)) { // Really time-consuming and complex rendering that depends on that entity $output = $entity->getName(); $cache->set($identifier, $output); } echo $cache->get($identifier);
For every Entity Insert/Update/Delete a timestamp for that Entity will be stored and can be fetched from the cacheIdentityService to get a Identitfier to cache Data that needs to be unique for the version/state of that entity.