| 1 | <?php |
||
| 15 | class DoctrineCache implements Cache { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var DoctrineCacheClient |
||
| 19 | */ |
||
| 20 | private $cache = null; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @since 1.0 |
||
| 24 | * |
||
| 25 | * @param DoctrineCacheClient $cache |
||
| 26 | */ |
||
| 27 | 9 | public function __construct( DoctrineCacheClient $cache ) { |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @since 1.0 |
||
| 33 | * |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | 2 | public function fetch( $id ) { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @since 1.0 |
||
| 42 | * |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | 3 | public function contains( $id ) { |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @since 1.0 |
||
| 51 | * |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | 3 | public function save( $id, $data, $ttl = 0 ) { |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @since 1.0 |
||
| 60 | * |
||
| 61 | * {@inheritDoc} |
||
| 62 | */ |
||
| 63 | 3 | public function delete( $id ) { |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @since 1.0 |
||
| 69 | * |
||
| 70 | * {@inheritDoc} |
||
| 71 | */ |
||
| 72 | 1 | public function getStats() { |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @since 1.2 |
||
| 78 | * |
||
| 79 | * {@inheritDoc} |
||
| 80 | */ |
||
| 81 | 1 | public function getName() { |
|
| 84 | |||
| 85 | } |
||
| 86 |