File tree 2 files changed +9
-36
lines changed
src/Symfony/Component/Cache 2 files changed +9
-36
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Cache ;
13
13
14
+ use Psr \Cache \CacheItemInterface ;
14
15
use Psr \Log \LoggerInterface ;
15
16
use Symfony \Component \Cache \Exception \InvalidArgumentException ;
16
17
17
18
/**
18
19
* @author Nicolas Grekas <p@tchwork.com>
19
20
*/
20
- final class CacheItem implements TaggedCacheItemInterface
21
+ final class CacheItem implements CacheItemInterface
21
22
{
22
23
protected $ key ;
23
24
protected $ value ;
@@ -97,7 +98,13 @@ public function expiresAfter($time)
97
98
}
98
99
99
100
/**
100
- * {@inheritdoc}
101
+ * Adds a tag to a cache item.
102
+ *
103
+ * @param string|string[] $tags A tag or array of tags
104
+ *
105
+ * @return static
106
+ *
107
+ * @throws InvalidArgumentException When $tag is not valid.
101
108
*/
102
109
public function tag ($ tags )
103
110
{
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments