1 | <?php |
||
8 | trait CacheProtectFunction |
||
9 | { |
||
10 | /** |
||
11 | * @param $method |
||
12 | * @param $parameters |
||
13 | * @return mixed |
||
14 | * cache through __call |
||
15 | */ |
||
16 | public function __call($method, $parameters) |
||
38 | |||
39 | /** |
||
40 | * @param $method |
||
41 | * @return int |
||
42 | * get expire by reflection |
||
43 | */ |
||
44 | private function getExpire($method) |
||
55 | |||
56 | /** |
||
57 | * @return bool |
||
58 | * delete all cache from the class |
||
59 | * TODO support other driver |
||
60 | */ |
||
61 | public function forgetCache(){ |
||
72 | } |