1 | <?php |
||
30 | class PsrCacheAdapter implements CacheProviderInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var CacheItemPoolInterface |
||
34 | */ |
||
35 | private $cache; |
||
36 | |||
37 | /** |
||
38 | * @param CacheItemPoolInterface $cache |
||
39 | */ |
||
40 | public function __construct(CacheItemPoolInterface $cache) |
||
44 | |||
45 | /** |
||
46 | * @param string $key |
||
47 | * @return mixed|false |
||
48 | */ |
||
49 | public function fetch($key) |
||
58 | |||
59 | /** |
||
60 | * @param string $key |
||
61 | * @param string $value |
||
62 | * @param int|\DateInterval $lifetime |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function save($key, $value, $lifetime = 0) |
||
73 | |||
74 | } |
||
75 |