| 1 | <?php |
||
| 11 | class RedisETagCache implements ETagCacheInterface |
||
| 12 | { |
||
| 13 | protected $client; |
||
| 14 | protected $generator; |
||
| 15 | /** |
||
| 16 | * RedisETagCache constructor. |
||
| 17 | * @param ETagGeneratorInterface $generator |
||
| 18 | * @param ClientInterface $client |
||
| 19 | */ |
||
| 20 | 5 | public function __construct(ETagGeneratorInterface $generator, ClientInterface $client) |
|
| 25 | /** |
||
| 26 | * @param $id |
||
| 27 | * @param $item |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | 1 | public function setETag($id, $item) |
|
| 34 | /** |
||
| 35 | * @param $id |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | 2 | public function getETag($id) |
|
| 42 | } |
||
| 43 |