Guides
Tutorials
Surrogate keys purger.
class ApiPlatform\HttpCache\SurrogateKeysPurger implements `<a href="/docs/reference/HttpCache/PurgerInterface">ApiPlatform\HttpCache\PurgerInterface</a>`
{
public __construct(array<int, Symfony\Contracts\HttpClient\HttpClientInterface> $clients, int $maxHeaderLength, string $header, string $separator)
public purge(array $iris): null
public getResponseHeaders(array $iris): array
}class ApiPlatform\HttpCache\SurrogateKeysPurger implements `<a href="/docs/reference/HttpCache/PurgerInterface">ApiPlatform\HttpCache\PurgerInterface</a>`
{
public __construct(array<int, Symfony\Contracts\HttpClient\HttpClientInterface> $clients, int $maxHeaderLength, string $header, string $separator)
public purge(array $iris): null
public getResponseHeaders(array $iris): array
}iterable $clientsiterable $clientsint $maxHeaderLengthint $maxHeaderLengthstring $headerstring $headerstring $separatorstring $separatorpublic __construct(array<int, Symfony\Contracts\HttpClient\HttpClientInterface> $clients, int $maxHeaderLength, string $header, string $separator)public __construct(array<int, Symfony\Contracts\HttpClient\HttpClientInterface> $clients, int $maxHeaderLength, string $header, string $separator)| clients | array<int, Symfony\Contracts\HttpClient\HttpClientInterface> | |
| maxHeaderLength | int | |
| header | string | |
| separator | string |
Purges all responses containing the given resources from the cache.
public purge(array $iris): nullpublic purge(array $iris): null| iris | array |
null
Get the response header containing purged tags.
public getResponseHeaders(array $iris): arraypublic getResponseHeaders(array $iris): array| iris | array |
array