Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2014 10:31
Show Gist options
  • Save anonymous/8556574 to your computer and use it in GitHub Desktop.
Save anonymous/8556574 to your computer and use it in GitHub Desktop.
Cache
/**
* @var \TYPO3\Flow\Cache\Frontend\StringFrontend
*/
protected $cache;
/**
* @param \TYPO3\Flow\Cache\CacheManager $cacheManager
*/
public function injectCache(\TYPO3\Flow\Cache\CacheManager $cacheManager) {
$this->cache = $cacheManager->getCache('YOUR_CACHE_IDENTIFIER');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment