Templating/CacheFragmentRenderer.php
public function render($uri, Request $request, array $options = array())
    {
        $inlineRenderer = $this->inlineRenderer;

        if (!isset($options['updateTrackerName'])) {
            $options['updateTrackerName'] = 'global';
        }
        $uriHash = md5(serialize($uri));

        return $this->cacheManager->getObject($options['updateTrackerName'],
                'controller/' . $uriHash,
                function() use ($inlineRenderer, $uri, $request, $options) {
                    return $inlineRenderer->render($uri, $request, $options);
                },
                isset($options['ttl']) ? $options['ttl'] : null,
                isset($options['repositoryName']) ? $options['repositoryName'] : null);
    }
public function render($uri, Request $request, array $options = array())
    {
        $inlineRenderer = $this->inlineRenderer;

        if (!isset($options['updateTrackerName'])) {
            $options['updateTrackerName'] = 'global';
        }
        $uriHash = md5(serialize($uri));

        return $this->cacheManager->getObject($options['updateTrackerName'],
                'controller/' . $uriHash,
                function() use ($inlineRenderer, $uri, $request, $options) {
                    return $inlineRenderer->render($uri, $request, $options);
                },
                isset($options['ttl']) ? $options['ttl'] : null,
                isset($options['repositoryName']) ? $options['repositoryName'] : null);
    }
public function render ( $ uri , Request $ request , array $ options = array ( ) ) { $ inlineRenderer = $ this -> inlineRenderer ; if ( ! isset ( $ options [ 'updateTrackerName' ] ) ) { $ options [ 'updateTrackerName' ] = 'global' ; } $ uriHash = md5 ( serialize ( $ uri ) ) ; return $ this -> cacheManager -> getObject ( $ options [ 'updateTrackerName' ] , 'controller/' . $ uriHash , function ( ) use ( $ inlineRenderer , $ uri , $ request , $ options ) { return $ inlineRenderer -> render ( $ uri , $ request , $ options ) ; } , isset ( $ options [ 'ttl' ] ) ? $ options [ 'ttl' ] : null , isset ( $ options [ 'repositoryName' ] ) ? $ options [ 'repositoryName' ] : null ) ; }
@inheritdoc

Additional optional options :

* updateTrackerName : the update tracker namespaces the action is linked with.
* ttl : the ttl of the object in the cache
* repositoryName: the cache repository name
@inheritdoc