Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5d68a57

Browse files
[Cache] Enable namespace-based invalidation by prefixing keys with backend-native namespace separators
1 parent cab721a commit 5d68a57

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

‎NamespacedPoolInterface.php‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Contracts\Cache;
13+
14+
use Psr\Cache\InvalidArgumentException;
15+
16+
/**
17+
* Enables namespace-based invalidation by prefixing keys with backend-native namespace separators.
18+
*
19+
* Note that calling `withSubNamespace()` MUST NOT mutate the pool, but return a new instance instead.
20+
*
21+
* When tags are used, they MUST ignore sub-namespaces.
22+
*
23+
* @author Nicolas Grekas <p@tchwork.com>
24+
*/
25+
interface NamespacedPoolInterface
26+
{
27+
/**
28+
* @throws InvalidArgumentException If the namespace contains characters found in ItemInterface's RESERVED_CHARACTERS
29+
*/
30+
public function withSubNamespace(string $namespace): static;
31+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /