1 | <?php |
||
18 | class PimpleCacheProvider implements ServiceProviderInterface |
||
19 | { |
||
20 | /** |
||
21 | * Registers cache services on the given container. |
||
22 | * |
||
23 | * @param Container $pimple A container instance |
||
24 | */ |
||
25 | public function register(Container $pimple) |
||
40 | |||
41 | /** |
||
42 | * Gets a cache object based on the backend requested |
||
43 | * |
||
44 | * @param $backend |
||
45 | * |
||
46 | * @return \Cmp\Cache\Domain\Cache |
||
47 | */ |
||
48 | private function getCache($backend) |
||
60 | |||
61 | /** |
||
62 | * Return a factory closure to build |
||
63 | * |
||
64 | * @param array|Redis $redis |
||
65 | * |
||
66 | * @return \Cmp\Cache\Domain\Cache |
||
67 | */ |
||
68 | private function getRedis($redis) |
||
81 | |||
82 | /** |
||
83 | * @param array $options |
||
84 | * @param string $key |
||
85 | * @param mixed $default |
||
86 | * |
||
87 | * @return mixed |
||
88 | */ |
||
89 | private function getParameter(array $options, $key, $default) |
||
93 | } |
||
94 |