1 | <?php |
||
14 | class CacheClient implements ClientInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var ClientInterface |
||
18 | */ |
||
19 | protected $client; |
||
20 | |||
21 | /** |
||
22 | * @var ExpireResolver |
||
23 | */ |
||
24 | protected $resolver; |
||
25 | |||
26 | /** |
||
27 | * @var StorageInterface |
||
28 | */ |
||
29 | protected $storage; |
||
30 | |||
31 | /** |
||
32 | * @param ClientInterface $client |
||
33 | * @param ExpireResolver $resolver |
||
34 | * @param StorageInterface $storage |
||
35 | */ |
||
36 | 9 | public function __construct(ClientInterface $client, ExpireResolver $resolver, StorageInterface $storage) |
|
42 | |||
43 | /** |
||
44 | * @param int $timeout |
||
45 | * |
||
46 | * @return CacheClient |
||
47 | */ |
||
48 | 1 | public function setTimeout($timeout) |
|
54 | |||
55 | /** |
||
56 | * @param string $proxy |
||
57 | * |
||
58 | * @return CacheClient |
||
59 | */ |
||
60 | 1 | public function setProxy($proxy) |
|
66 | |||
67 | /** |
||
68 | * @param string $request |
||
69 | * @param array $params |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 7 | public function get($request, array $params = []) |
|
88 | } |
||
89 |