@@ -67,11 +67,11 @@ private function timeCall($name, array $arguments = null)
67
67
return $ object ;
68
68
}
69
69
70
- public function getItem ($ key, array $ tags = [] )
70
+ public function getItem ($ key )
71
71
{
72
- $ call = $ this ->timeCall (__FUNCTION__ , [$ key, $ tags ]);
73
- $ result = $ call ->result ;
74
- $ call ->isHit = $ result ->isHit ();
72
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ key ]);
73
+ $ result = $ call ->result ;
74
+ $ call ->isHit = $ result ->isHit ();
75
75
76
76
// Display the result in a good way depending on the data type
77
77
if ($ call ->isHit ) {
@@ -85,17 +85,17 @@ public function getItem($key, array $tags = [])
85
85
return $ result ;
86
86
}
87
87
88
- public function hasItem ($ key, array $ tags = [] )
88
+ public function hasItem ($ key )
89
89
{
90
- $ call = $ this ->timeCall (__FUNCTION__ , [$ key, $ tags ]);
90
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ key ]);
91
91
$ this ->addCall ($ call );
92
92
93
93
return $ call ->result ;
94
94
}
95
95
96
- public function deleteItem ($ key, array $ tags = [] )
96
+ public function deleteItem ($ key )
97
97
{
98
- $ call = $ this ->timeCall (__FUNCTION__ , [$ key, $ tags ]);
98
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ key ]);
99
99
$ this ->addCall ($ call );
100
100
101
101
return $ call ->result ;
@@ -125,35 +125,43 @@ public function saveDeferred(CacheItemInterface $item)
125
125
return $ call ->result ;
126
126
}
127
127
128
- public function getItems (array $ keys = [], array $ tags = [] )
128
+ public function getItems (array $ keys = [])
129
129
{
130
- $ call = $ this ->timeCall (__FUNCTION__ , [$ keys, $ tags ]);
130
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ keys ]);
131
131
$ result = $ call ->result ;
132
132
$ call ->result = sprintf ('<DATA:%s> ' , gettype ($ result ));
133
133
$ this ->addCall ($ call );
134
134
135
135
return $ result ;
136
136
}
137
137
138
- public function clear (array $ tags = [])
138
+ public function clear ()
139
+ {
140
+ $ call = $ this ->timeCall (__FUNCTION__ , []);
141
+ $ this ->addCall ($ call );
142
+
143
+ return $ call ->result ;
144
+ }
145
+
146
+ public function clearTags (array $ tags )
139
147
{
140
- $ call = $ this ->timeCall (__FUNCTION__ , [$ tags ]);
148
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ tags ]);
141
149
$ this ->addCall ($ call );
142
150
143
151
return $ call ->result ;
144
152
}
145
153
146
- public function deleteItems (array $ keys, array $ tags = [] )
154
+ public function deleteItems (array $ keys )
147
155
{
148
- $ call = $ this ->timeCall (__FUNCTION__ , [$ keys, $ tags ]);
156
+ $ call = $ this ->timeCall (__FUNCTION__ , [$ keys ]);
149
157
$ this ->addCall ($ call );
150
158
151
159
return $ call ->result ;
152
160
}
153
161
154
162
public function commit ()
155
163
{
156
- $ call = $ this ->timeCall (__FUNCTION__ );
164
+ $ call = $ this ->timeCall (__FUNCTION__ );
157
165
$ this ->addCall ($ call );
158
166
159
167
return $ call ->result ;
0 commit comments