@@ -53,20 +53,18 @@ final class CachePlugin implements Plugin
5353
5454 /**
5555 * @param StreamFactory|StreamFactoryInterface $streamFactory
56- * @param mixed[] $config {
57- *
58- * @var bool $respect_cache_headers Whether to look at the cache directives or ignore them
59- * @var int $default_ttl (seconds) If we do not respect cache headers or can't calculate a good ttl, use this
60- * value
61- * @var string $hash_algo The hashing algorithm to use when generating cache keys
62- * @var int $cache_lifetime (seconds) To support serving a previous stale response when the server answers 304
56+ * @param mixed[] $config
57+ * bool respect_cache_headers: Whether to look at the cache directives or ignore them
58+ * int default_ttl: (seconds) If we do not respect cache headers or can't calculate a good ttl, use this value
59+ * string hash_algo: The hashing algorithm to use when generating cache keys
60+ * int cache_lifetime: (seconds) To support serving a previous stale response when the server answers 304
6361 * we have to store the cache for a longer time than the server originally says it is valid for.
6462 * We store a cache item for $cache_lifetime + max age of the response.
65- * @var string[] $ methods list of request methods which can be cached
66- * @var string[] $ blacklisted_paths list of regex for URLs explicitly not to be cached
67- * @var string[] $ respect_response_cache_directives list of cache directives this plugin will respect while caching responses
68- * @var CacheKeyGenerator $ cache_key_generator an object to generate the cache key. Defaults to a new instance of SimpleGenerator
69- * @var CacheListener[] $ cache_listeners an array of objects to act on the response based on the results of the cache check.
63+ * string[] methods: list of request methods which can be cached
64+ * string[] blacklisted_paths: list of regex for URLs explicitly not to be cached
65+ * string[] respect_response_cache_directives: list of cache directives this plugin will respect while caching responses
66+ * CacheKeyGenerator cache_key_generator: an object to generate the cache key. Defaults to a new instance of SimpleGenerator
67+ * CacheListener[] cache_listeners: an array of objects to act on the response based on the results of the cache check.
7068 * Defaults to an empty array
7169 * }
7270 */
0 commit comments