forked from FriendsOfSymfony/FOSHttpCache
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPrefixCapable.php
More file actions
28 lines (24 loc) · 850 Bytes
/
PrefixCapable.php
File metadata and controls
28 lines (24 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
* This file is part of the FOSHttpCache package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\HttpCache\ProxyClient\Invalidation;
use FOS\HttpCache\ProxyClient\ProxyClient;
/**
* An HTTP cache that supports invalidation by a prefix, that is, removing
* or expiring objects from the cache starting with the given string or strings.
*/
interface PrefixCapable extends ProxyClient
{
/**
* Remove/Expire cache objects based on URL prefixes.
*
* @param string[] $prefixes Prefixed objects that should be removed/expired from the cache. An empty prefix list should be ignored.
*/
public function invalidatePrefixes(array $prefixes): static;
}