Last active
March 27, 2018 15:16
-
-
Save BlackhawkG7/4e6e4211a303457390f1e0680f97bebc to your computer and use it in GitHub Desktop.
TYPO3 extbase Cache Manager injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* cacheManager | |
* | |
* @var \TYPO3\CMS\Core\Cache\CacheManager | |
* @inject | |
*/ | |
protected $cacheManager; | |
// if (($result = $this->cacheManager->getCache('extension_key')->get('cacheKey')) === false) { | |
// $query = $this->createQuery(); | |
// $result = $query->execute(); | |
// $this->cacheManager->getCache('extension_key')->set('cacheKey', $result, [], 3600); | |
// } | |
// return $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment