| 1 | <?php |
||
| 12 | class ApcStorage extends AbstractStorage implements StorageInterface { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor |
||
| 16 | * |
||
| 17 | * @param array $options |
||
| 18 | */ |
||
| 19 | public function __construct(ApcObject $apc, array $options = array()) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Initialise Cache storage |
||
| 26 | * |
||
| 27 | * @return boolean |
||
| 28 | * |
||
| 29 | * @throws \Kemist\Cache\Exception |
||
| 30 | */ |
||
| 31 | public function init() { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Checks if the specified name in cache exists |
||
| 37 | * |
||
| 38 | * @param string $name cache name |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function has($name) { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Saves the variable to the $name cache |
||
| 51 | * |
||
| 52 | * @param string $name cache name |
||
| 53 | * @param mixed $val variable to be stored |
||
| 54 | * |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function store($name, $val, $compressed = false) { |
||
| 62 | |||
| 63 | } |
||
| 64 |