@@ 189-198 (lines=10) @@ | ||
186 | /** |
|
187 | * @SuppressWarnings(PHPMD.ShortVariable) |
|
188 | */ |
|
189 | public function find($id, $columns = ['*']) |
|
190 | { |
|
191 | $tags = $this->getCacheTags(); |
|
192 | $key = $this->getCacheKey($columns, $id); |
|
193 | ||
194 | return $this->cache($tags) |
|
195 | ->rememberForever($key, function () use ($id, $columns) { |
|
196 | return parent::find($id, $columns); |
|
197 | }); |
|
198 | } |
|
199 | ||
200 | public function first($columns = ['*']) |
|
201 | { |
|
@@ 200-209 (lines=10) @@ | ||
197 | }); |
|
198 | } |
|
199 | ||
200 | public function first($columns = ['*']) |
|
201 | { |
|
202 | $tags = $this->getCacheTags(); |
|
203 | $key = $this->getCacheKey($columns) . '-first'; |
|
204 | ||
205 | return $this->cache($tags) |
|
206 | ->rememberForever($key, function () use ($columns) { |
|
207 | return parent::first($columns); |
|
208 | }); |
|
209 | } |
|
210 | ||
211 | public function get($columns = ['*']) |
|
212 | { |
|
@@ 211-220 (lines=10) @@ | ||
208 | }); |
|
209 | } |
|
210 | ||
211 | public function get($columns = ['*']) |
|
212 | { |
|
213 | $tags = $this->getCacheTags(); |
|
214 | $key = $this->getCacheKey($columns); |
|
215 | ||
216 | return $this->cache($tags) |
|
217 | ->rememberForever($key, function () use ($columns) { |
|
218 | return parent::get($columns); |
|
219 | }); |
|
220 | } |
|
221 | ||
222 | public function max($column) |
|
223 | { |