code: 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(),
          );
      }
docs: Transform Cache Symfony annotation into equivalent array
  
  @param Cache $cache
  @return array