File tree 1 file changed +31
-0
lines changed 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments