Transformer/MailerTransformer.php
protected function transformCacheAnnotation(Cache $cache)
    {
        return array(
            'expires' => $cache->getExpires(),
            'maxage' => $cache->getMaxAge(),
            'smaxage' => $cache->getSMaxAge(),
            'public' => $this->transformBoolean($cache->isPublic()),
            'vary' => $cache->getVary(),
            'lastModified' => $cache->getLastModified(),
            'etag' => $cache->getETag(),
        );
    }
protected function transformCacheAnnotation(Cache $cache)
    {
        return array(
            'expires' => $cache->getExpires(),
            'maxage' => $cache->getMaxAge(),
            'smaxage' => $cache->getSMaxAge(),
            'public' => $this->transformBoolean($cache->isPublic()),
            'vary' => $cache->getVary(),
            'lastModified' => $cache->getLastModified(),
            'etag' => $cache->getETag(),
        );
    }
Transform Cache Symfony annotation into equivalent array

@param Cache $cache
@return array