| 1 | <?php |
||
| 17 | class DoctrineCache implements CacheInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var Cache |
||
| 21 | */ |
||
| 22 | protected $cache; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * DoctrineCache constructor. |
||
| 26 | * |
||
| 27 | * @param Cache $cache |
||
| 28 | */ |
||
| 29 | public function __construct(Cache $cache) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set cache entry. |
||
| 36 | * |
||
| 37 | * @param string $key |
||
| 38 | * @param string $content |
||
| 39 | */ |
||
| 40 | public function setItem($key, $content) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get cache entry. |
||
| 47 | * |
||
| 48 | * @param string $key |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getItem($key) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Check if cache entry exists. |
||
| 59 | * |
||
| 60 | * @param string $key |
||
| 61 | * |
||
| 62 | * @return bool |
||
| 63 | */ |
||
| 64 | public function hasItem($key) |
||
| 68 | } |
||
| 69 |