| 1 | <?php |
||
| 9 | class Cache |
||
| 10 | { |
||
| 11 | private $cache; |
||
| 12 | private $defaultCache = "Cache\Adapter\Apcu\ApcuCachePool"; |
||
|
|
|||
| 13 | |||
| 14 | public function __construct($cache = null) |
||
| 18 | |||
| 19 | // null = set to default cache (Apcu) |
||
| 20 | // false = disable cache |
||
| 21 | // \Psr\Cache\CacheItemPoolInterface class |
||
| 22 | private function setCache($cache = null) { |
||
| 32 | |||
| 33 | public function getCache() { |
||
| 36 | |||
| 37 | public function hasCache() { |
||
| 40 | |||
| 41 | public function getCacheItem($key) { |
||
| 48 | |||
| 49 | public function setCacheItem($key, $data, $ttl = 0) { |
||
| 60 | |||
| 61 | public function disableCache() { |
||
| 64 | } |
||
| 65 |
This check marks private properties in classes that are never used. Those properties can be removed.