forked from ezsystems/ezpublish-kernel
/
PurgeClientInterface.php
31 lines (28 loc) · 1007 Bytes
/
PurgeClientInterface.php
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
29
30
31
<?php
/**
* File containing the Cache PurgeClientInterface class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\MVC\Symfony\Cache;
/**
* @deprecated since 6.8. Use PurgeClientInterface from the platform-http-cache package.
*/
interface PurgeClientInterface
{
/**
* Triggers the cache purge $locationIds.
*
* It's up to the implementor to decide whether to purge $locationIds right away or to delegate to a separate process.
*
* @param array $locationIds Cache resource(s) to purge (e.g. array of URI to purge in a reverse proxy)
*/
public function purge($locationIds);
/**
* Purges all content elements currently in cache.
*
* It's up to the implementor to decide whether to purge $locationIds right away or to delegate to a separate process.
*/
public function purgeAll();
}