Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | trait InteractsWithCache |
||
17 | { |
||
18 | /** |
||
19 | * 缓存实例. |
||
20 | * |
||
21 | * @var |
||
22 | */ |
||
23 | protected $cache; |
||
24 | |||
25 | /** |
||
26 | * 获取缓存. |
||
27 | * |
||
28 | * @return FilesystemCache |
||
29 | */ |
||
30 | public function getCache() |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * 设置缓存. |
||
41 | * |
||
42 | * @param $cache |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function setCache($cache) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * 创建默认缓存. |
||
55 | * |
||
56 | * @return FilesystemCache |
||
57 | */ |
||
58 | public function createDefaultCache() |
||
63 |