1 | <?php |
||
30 | class Driver implements ExtendedCacheItemPoolInterface |
||
31 | { |
||
32 | use DriverBaseTrait, IOHelperTrait; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | */ |
||
37 | const FILE_DIR = 'files'; |
||
38 | |||
39 | /** |
||
40 | * Driver constructor. |
||
41 | * @param array $config |
||
42 | * @throws phpFastCacheDriverException |
||
43 | */ |
||
44 | public function __construct(array $config = []) |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function driverCheck() |
||
60 | |||
61 | /** |
||
62 | * @param \Psr\Cache\CacheItemInterface $item |
||
63 | * @return mixed |
||
64 | * @throws phpFastCacheInvalidArgumentException |
||
65 | */ |
||
66 | protected function driverWrite(CacheItemInterface $item) |
||
87 | |||
88 | /** |
||
89 | * @param \Psr\Cache\CacheItemInterface $item |
||
90 | * @return mixed |
||
91 | */ |
||
92 | protected function driverRead(CacheItemInterface $item) |
||
107 | |||
108 | /** |
||
109 | * @param \Psr\Cache\CacheItemInterface $item |
||
110 | * @return bool |
||
111 | * @throws phpFastCacheInvalidArgumentException |
||
112 | */ |
||
113 | protected function driverDelete(CacheItemInterface $item) |
||
133 | |||
134 | /** |
||
135 | * @return bool |
||
136 | */ |
||
137 | protected function driverClear() |
||
141 | |||
142 | /** |
||
143 | * @return bool |
||
144 | */ |
||
145 | protected function driverConnect() |
||
149 | |||
150 | /** |
||
151 | * @param string $optionName |
||
152 | * @param mixed $optionValue |
||
153 | * @return bool |
||
154 | * @throws phpFastCacheInvalidArgumentException |
||
155 | */ |
||
156 | public static function isValidOption($optionName, $optionValue) |
||
184 | |||
185 | /** |
||
186 | * @return array |
||
187 | */ |
||
188 | public static function getValidOptions() |
||
192 | |||
193 | /** |
||
194 | * @return array |
||
195 | */ |
||
196 | public static function getRequiredOptions() |
||
200 | } |
||
201 |