References PurgerInterface
Reference
I
Interface

ApiPlatform\HttpCache\PurgerInterface

Purges resources from the cache.

interface ApiPlatform\HttpCache\PurgerInterface
{
    public purge(array<int, string> $iris): null
    public getResponseHeaders(array<int, string> $iris): array
}

Methods

purge

Purges all responses containing the given resources from the cache.

public purge(array<int, string> $iris): null

Parameters

irisarray<int, string>

Returns

null

getResponseHeaders

Get the response header containing purged tags.

public getResponseHeaders(array<int, string> $iris): array

Parameters

irisarray<int, string>

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