Skip to content

Instantly share code, notes, and snippets.

@BlackhawkG7
Last active March 27, 2018 15:16
Show Gist options
  • Select an option

  • Save BlackhawkG7/4e6e4211a303457390f1e0680f97bebc to your computer and use it in GitHub Desktop.

Select an option

Save BlackhawkG7/4e6e4211a303457390f1e0680f97bebc to your computer and use it in GitHub Desktop.

Revisions

  1. BlackhawkG7 renamed this gist Mar 27, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. BlackhawkG7 created this gist Mar 27, 2018.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    /**
    * 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;