1 | <?php namespace Arcanedev\LaravelSettings\Stores; |
||
12 | class RedisStore extends AbstractStore |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * The redis manager. |
||
21 | * |
||
22 | * @var \Illuminate\Redis\RedisManager |
||
23 | */ |
||
24 | protected $manager; |
||
25 | |||
26 | /* ----------------------------------------------------------------- |
||
27 | | Post-Constructor |
||
28 | | ----------------------------------------------------------------- |
||
29 | */ |
||
30 | |||
31 | /** |
||
32 | * Fire the post options to customize the store. |
||
33 | * |
||
34 | * @param array $options |
||
35 | */ |
||
36 | 24 | protected function postOptions(array $options) |
|
40 | |||
41 | /* ----------------------------------------------------------------- |
||
42 | | Main Methods |
||
43 | | ----------------------------------------------------------------- |
||
44 | */ |
||
45 | |||
46 | /** |
||
47 | * Read the data from the store. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 24 | protected function read() |
|
58 | |||
59 | /** |
||
60 | * Write the data into the store. |
||
61 | * |
||
62 | * @param array $data |
||
63 | */ |
||
64 | 24 | protected function write(array $data) |
|
69 | } |
||
70 |