@@ 103-111 (lines=9) @@ | ||
100 | /** |
|
101 | * {@inheritdoc} |
|
102 | */ |
|
103 | public function deleteItem($key) |
|
104 | { |
|
105 | $event = $this->start(__FUNCTION__, $key); |
|
106 | try { |
|
107 | return $event->result = $this->pool->deleteItem($key); |
|
108 | } finally { |
|
109 | $event->end = microtime(true); |
|
110 | } |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * {@inheritdoc} |
|
@@ 116-124 (lines=9) @@ | ||
113 | /** |
|
114 | * {@inheritdoc} |
|
115 | */ |
|
116 | public function save(CacheItemInterface $item) |
|
117 | { |
|
118 | $event = $this->start(__FUNCTION__, $item); |
|
119 | try { |
|
120 | return $event->result = $this->pool->save($item); |
|
121 | } finally { |
|
122 | $event->end = microtime(true); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * {@inheritdoc} |
|
@@ 129-137 (lines=9) @@ | ||
126 | /** |
|
127 | * {@inheritdoc} |
|
128 | */ |
|
129 | public function saveDeferred(CacheItemInterface $item) |
|
130 | { |
|
131 | $event = $this->start(__FUNCTION__, $item); |
|
132 | try { |
|
133 | return $event->result = $this->pool->saveDeferred($item); |
|
134 | } finally { |
|
135 | $event->end = microtime(true); |
|
136 | } |
|
137 | } |
|
138 | ||
139 | /** |
|
140 | * {@inheritdoc} |
|
@@ 182-190 (lines=9) @@ | ||
179 | /** |
|
180 | * {@inheritdoc} |
|
181 | */ |
|
182 | public function deleteItems(array $keys) |
|
183 | { |
|
184 | $event = $this->start(__FUNCTION__, $keys); |
|
185 | try { |
|
186 | return $event->result = $this->pool->deleteItems($keys); |
|
187 | } finally { |
|
188 | $event->end = microtime(true); |
|
189 | } |
|
190 | } |
|
191 | ||
192 | /** |
|
193 | * {@inheritdoc} |
@@ 24-32 (lines=9) @@ | ||
21 | /** |
|
22 | * {@inheritdoc} |
|
23 | */ |
|
24 | public function invalidateTag($tag) |
|
25 | { |
|
26 | $event = $this->start(__FUNCTION__, $tag); |
|
27 | try { |
|
28 | return $event->result = $this->pool->invalidateTag($tag); |
|
29 | } finally { |
|
30 | $event->end = microtime(true); |
|
31 | } |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * {@inheritdoc} |
|
@@ 37-45 (lines=9) @@ | ||
34 | /** |
|
35 | * {@inheritdoc} |
|
36 | */ |
|
37 | public function invalidateTags(array $tags) |
|
38 | { |
|
39 | $event = $this->start(__FUNCTION__, $tags); |
|
40 | try { |
|
41 | return $event->result = $this->pool->invalidateTags($tags); |
|
42 | } finally { |
|
43 | $event->end = microtime(true); |
|
44 | } |
|
45 | } |
|
46 | } |
|
47 |