1 | <?php namespace CMSFactory\Services\Cache; |
||
11 | class CacheFactory |
||
12 | { |
||
|
|||
13 | use ContainerAwareTrait; |
||
14 | |||
15 | /** |
||
16 | * @return Cache |
||
17 | * @throws ServiceNotFoundException |
||
18 | * @throws InvalidArgumentException |
||
19 | * @throws ServiceCircularReferenceException |
||
20 | */ |
||
21 | public function createCacheProvider() { |
||
29 | |||
30 | /** |
||
31 | * @param string $provider |
||
32 | * @return bool |
||
33 | * @throws ServiceNotFoundException |
||
34 | * @throws ServiceCircularReferenceException |
||
35 | * @throws InvalidArgumentException |
||
36 | */ |
||
37 | private function checkRequirements($provider) { |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | private function checkApc() { |
||
61 | |||
62 | /** |
||
63 | * @return bool |
||
64 | * @throws ServiceNotFoundException |
||
65 | * @throws InvalidArgumentException |
||
66 | * @throws ServiceCircularReferenceException |
||
67 | */ |
||
68 | private function checkMemcache() { |
||
75 | |||
76 | /** |
||
77 | * @return bool |
||
78 | * @throws ServiceNotFoundException |
||
79 | * @throws ServiceCircularReferenceException |
||
80 | * @throws InvalidArgumentException |
||
81 | */ |
||
82 | private function checkMemcached() { |
||
95 | |||
96 | /** |
||
97 | * @return bool |
||
98 | * @throws InvalidArgumentException |
||
99 | */ |
||
100 | private function checkFilesystem() { |
||
106 | |||
107 | } |