| @@ 55-63 (lines=9) @@ | ||
| 52 | return $event->result; |
|
| 53 | } |
|
| 54 | ||
| 55 | public function deleteItem($key) |
|
| 56 | { |
|
| 57 | $event = $this->start(__FUNCTION__, $key); |
|
| 58 | try { |
|
| 59 | return $event->result = parent::deleteItem($key); |
|
| 60 | } finally { |
|
| 61 | $event->end = microtime(true); |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | public function save(CacheItemInterface $item) |
|
| 66 | { |
|
| @@ 65-73 (lines=9) @@ | ||
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | public function save(CacheItemInterface $item) |
|
| 66 | { |
|
| 67 | $event = $this->start(__FUNCTION__, $item); |
|
| 68 | try { |
|
| 69 | return $event->result = parent::save($item); |
|
| 70 | } finally { |
|
| 71 | $event->end = microtime(true); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | public function saveDeferred(CacheItemInterface $item) |
|
| 76 | { |
|
| @@ 75-83 (lines=9) @@ | ||
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | public function saveDeferred(CacheItemInterface $item) |
|
| 76 | { |
|
| 77 | $event = $this->start(__FUNCTION__, $item); |
|
| 78 | try { |
|
| 79 | return $event->result = parent::saveDeferred($item); |
|
| 80 | } finally { |
|
| 81 | $event->end = microtime(true); |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | public function getItems(array $keys = []) |
|
| 86 | { |
|
| @@ 109-117 (lines=9) @@ | ||
| 106 | return $f(); |
|
| 107 | } |
|
| 108 | ||
| 109 | public function clear() |
|
| 110 | { |
|
| 111 | $event = $this->start(__FUNCTION__); |
|
| 112 | try { |
|
| 113 | return $event->result = parent::clear(); |
|
| 114 | } finally { |
|
| 115 | $event->end = microtime(true); |
|
| 116 | } |
|
| 117 | } |
|
| 118 | ||
| 119 | public function deleteItems(array $keys) |
|
| 120 | { |
|
| @@ 119-127 (lines=9) @@ | ||
| 116 | } |
|
| 117 | } |
|
| 118 | ||
| 119 | public function deleteItems(array $keys) |
|
| 120 | { |
|
| 121 | $event = $this->start(__FUNCTION__, $keys); |
|
| 122 | try { |
|
| 123 | return $event->result = parent::deleteItems($keys); |
|
| 124 | } finally { |
|
| 125 | $event->end = microtime(true); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | public function commit() |
|
| 130 | { |
|
| @@ 129-137 (lines=9) @@ | ||
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | public function commit() |
|
| 130 | { |
|
| 131 | $event = $this->start(__FUNCTION__); |
|
| 132 | try { |
|
| 133 | return $event->result = parent::commit(); |
|
| 134 | } finally { |
|
| 135 | $event->end = microtime(true); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | public function invalidateTag($tag) |
|
| 140 | { |
|
| @@ 139-147 (lines=9) @@ | ||
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | public function invalidateTag($tag) |
|
| 140 | { |
|
| 141 | $event = $this->start(__FUNCTION__, $tag); |
|
| 142 | try { |
|
| 143 | return $event->result = parent::invalidateTag($tag); |
|
| 144 | } finally { |
|
| 145 | $event->end = microtime(true); |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| 149 | public function invalidateTags(array $tags) |
|
| 150 | { |
|
| @@ 149-157 (lines=9) @@ | ||
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| 149 | public function invalidateTags(array $tags) |
|
| 150 | { |
|
| 151 | $event = $this->start(__FUNCTION__, $tags); |
|
| 152 | try { |
|
| 153 | return $event->result = parent::invalidateTags($tags); |
|
| 154 | } finally { |
|
| 155 | $event->end = microtime(true); |
|
| 156 | } |
|
| 157 | } |
|
| 158 | ||
| 159 | public function __getCalls() |
|
| 160 | { |
|