| 1 | <?php |
||
| 10 | abstract class CacheDecorator implements Cache |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The decorated cache |
||
| 14 | * |
||
| 15 | * @var Cache |
||
| 16 | */ |
||
| 17 | private $cache; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * CacheDecorator constructor. |
||
| 21 | * |
||
| 22 | * @param Cache $cache |
||
| 23 | */ |
||
| 24 | public function __construct(Cache $cache) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public function delete($key) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function set($key, $value, $timeToLive = 0) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function has($key) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function get($key) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function pull($key, $default = null) |
||
| 68 | } |
||
| 69 |