1 | <?php |
||
11 | class StoreHandler |
||
12 | { |
||
13 | /** |
||
14 | * $store. |
||
15 | * |
||
16 | * @var KeyValueStore |
||
17 | */ |
||
18 | private $store; |
||
19 | |||
20 | /** |
||
21 | * Constructor. |
||
22 | * |
||
23 | * @param KeyValueStore $store |
||
24 | */ |
||
25 | public function __construct(KeyValueStore $store) |
||
29 | |||
30 | /** |
||
31 | * get. |
||
32 | * |
||
33 | * @param string $key |
||
34 | * @throw Webmozart\KeyValueStore\Api\NoSuchKeyException |
||
35 | * |
||
36 | * @return KeyValue |
||
37 | */ |
||
38 | public function get($key) |
||
48 | |||
49 | /** |
||
50 | * remove. |
||
51 | * |
||
52 | * @param string $key |
||
53 | * @throw Webmozart\KeyValueStore\Api\WriteException |
||
54 | */ |
||
55 | public function remove($key) |
||
59 | |||
60 | /** |
||
61 | * flush. |
||
62 | * |
||
63 | * @param KeyValue $keyValue |
||
64 | * |
||
65 | * @throws \Exception |
||
66 | */ |
||
67 | public function flush(KeyValue $keyValue) |
||
71 | } |
||
72 |