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