| 1 | <?php |
||
| 10 | class PsrCacheAdapter implements CacheAdapterInterface |
||
| 11 | { |
||
| 12 | private $pool; |
||
| 13 | |||
| 14 | 9 | public function __construct(CacheItemPoolInterface $pool) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @param $key |
||
| 21 | * @param null $options |
||
| 22 | * @return bool|\string[] |
||
| 23 | */ |
||
| 24 | 2 | public function has($key, $options = null) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param $key |
||
| 31 | * @param mixed $options |
||
| 32 | * @return mixed|false |
||
| 33 | */ |
||
| 34 | 2 | public function fetch($key, $options = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param $key |
||
| 42 | * @param $data |
||
| 43 | * @param $lifeTime |
||
| 44 | * @param $options |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | 8 | public function store($key, $data, $lifeTime = null, $options = null) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param $key |
||
| 59 | * @param mixed $options |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | 2 | public function remove($key, $options = null) |
|
| 66 | } |
||
| 67 |