@@ 161-167 (lines=7) @@ | ||
158 | ->toArray(); |
|
159 | } |
|
160 | ||
161 | public function avg($column) |
|
162 | { |
|
163 | return $this->cache($this->getModelTag()) |
|
164 | ->rememberForever($this->getMethodKey("-avg_{$column}"), function () use ($column) { |
|
165 | return parent::avg($column); |
|
166 | }); |
|
167 | } |
|
168 | ||
169 | public function count($columns = ['*']) |
|
170 | { |
|
@@ 169-175 (lines=7) @@ | ||
166 | }); |
|
167 | } |
|
168 | ||
169 | public function count($columns = ['*']) |
|
170 | { |
|
171 | return $this->cache($this->getModelTag()) |
|
172 | ->rememberForever($this->getMethodKey("-count"), function () use ($columns) { |
|
173 | return parent::count($columns); |
|
174 | }); |
|
175 | } |
|
176 | ||
177 | public function cursor() |
|
178 | { |
|
@@ 212-218 (lines=7) @@ | ||
209 | }); |
|
210 | } |
|
211 | ||
212 | public function max($column) |
|
213 | { |
|
214 | return $this->cache($this->getModelTag()) |
|
215 | ->rememberForever($this->getMethodKey("-max_{$column}"), function () use ($column) { |
|
216 | return parent::max($column); |
|
217 | }); |
|
218 | } |
|
219 | ||
220 | public function min($column) |
|
221 | { |
|
@@ 220-226 (lines=7) @@ | ||
217 | }); |
|
218 | } |
|
219 | ||
220 | public function min($column) |
|
221 | { |
|
222 | return $this->cache($this->getModelTag()) |
|
223 | ->rememberForever($this->getMethodKey("-min_{$column}"), function () use ($column) { |
|
224 | return parent::min($column); |
|
225 | }); |
|
226 | } |
|
227 | ||
228 | public function pluck($column, $key = null) |
|
229 | { |
|
@@ 242-248 (lines=7) @@ | ||
239 | }); |
|
240 | } |
|
241 | ||
242 | public function sum($column) |
|
243 | { |
|
244 | return $this->cache($this->getModelTag()) |
|
245 | ->rememberForever($this->getMethodKey("-sum_{$column}"), function () use ($column) { |
|
246 | return parent::sum($column); |
|
247 | }); |
|
248 | } |
|
249 | } |
|
250 |