1 | <?php |
||
24 | class DoctrineCacheAdapter implements StorageInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var Cache |
||
28 | */ |
||
29 | protected $cache; |
||
30 | |||
31 | /** |
||
32 | * Sets up the adapter using the Doctrine cache implementation $cache. |
||
33 | * @param Doctrine\Common\Cache\Cache $cache the cache implementation to use as storage backend |
||
34 | */ |
||
35 | public function __construct(Cache $cache) |
||
39 | |||
40 | 1 | public function setValue($key, $value) |
|
44 | |||
45 | 1 | public function incrementValue($key) |
|
49 | |||
50 | 1 | public function getValue($key) |
|
57 | |||
58 | 1 | public function setTimestamp($key, $timestamp) |
|
62 | |||
63 | 1 | public function getTimestamp($key) |
|
70 | |||
71 | 3 | public function expire($key) |
|
76 | |||
77 | /** |
||
78 | * @codeCoverageIgnore |
||
79 | */ |
||
80 | public function expireIn($key, $seconds) |
||
84 | } |
||
85 |