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