References SurrogateKeysPurger
Reference
C
Class

ApiPlatform\HttpCache\SurrogateKeysPurger

Surrogate keys purger.

class ApiPlatform\HttpCache\SurrogateKeysPurger implements ApiPlatform\HttpCache\PurgerInterface
{
    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
}

Properties

clients

iterable $clients

maxHeaderLength

int $maxHeaderLength
string $header

separator

string $separator

Methods

__construct

public __construct(array<int, Symfony\Contracts\HttpClient\HttpClientInterface> $clients, int $maxHeaderLength, string $header, string $separator)

Parameters

clientsarray<int, Symfony\Contracts\HttpClient\HttpClientInterface>
maxHeaderLengthint
headerstring
separatorstring

purge

Purges all responses containing the given resources from the cache.

public purge(array $iris): null

Parameters

irisarray

Returns

null

getResponseHeaders

Get the response header containing purged tags.

public getResponseHeaders(array $iris): array

Parameters

irisarray

Returns

array

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop