1 | <?php namespace AdammBalogh\KeyValueStore\Adapter; |
||
8 | class SharedMemoryAdapter extends AbstractAdapter |
||
9 | { |
||
10 | use KeyTrait, ValueTrait, ServerTrait; |
||
11 | |||
12 | /** |
||
13 | * @var resource |
||
14 | */ |
||
15 | protected $client; |
||
16 | |||
17 | /** |
||
18 | * @var ShmProxy |
||
19 | */ |
||
20 | protected $shmProxy; |
||
21 | |||
22 | /** |
||
23 | * @param resource $client |
||
24 | * @param ShmProxy $shmProxy |
||
25 | * |
||
26 | * @throws \InvalidArgumentException |
||
27 | */ |
||
28 | public function __construct($client, ShmProxy $shmProxy = null) |
||
42 | |||
43 | /** |
||
44 | * @return resource |
||
45 | */ |
||
46 | public function getClient() |
||
50 | } |
||
51 |