1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Cache;
13
14 /**
15 * Returns the usage (memory, files) of the specified cache.
16 */
17 class StatOperation extends BaseOperation
18 {
19 protected function process()
20 {
21 $cache = $this->collection[$this->key];
22
23 list($count, $label) = $cache->stat();
24
25 $this->response['count'] = (int) $count;
26
27 return $label;
28 }
29 }