1 | <?php namespace Arcanedev\LaravelSettings\Stores; |
||
9 | class RedisStore extends AbstractStore |
||
10 | { |
||
11 | /* ----------------------------------------------------------------- |
||
12 | | Post-Constructor |
||
13 | | ----------------------------------------------------------------- |
||
14 | */ |
||
15 | |||
16 | /** |
||
17 | * Fire the post options to customize the store. |
||
18 | * |
||
19 | * @param array $options |
||
20 | */ |
||
21 | 24 | protected function postOptions(array $options) |
|
25 | |||
26 | /* ----------------------------------------------------------------- |
||
27 | | Getters & Setters |
||
28 | | ----------------------------------------------------------------- |
||
29 | */ |
||
30 | |||
31 | /** |
||
32 | * Get the redis connection. |
||
33 | * |
||
34 | * @return \Illuminate\Redis\Connections\Connection |
||
35 | */ |
||
36 | 24 | protected function redis() |
|
43 | |||
44 | /* ----------------------------------------------------------------- |
||
45 | | Main Methods |
||
46 | | ----------------------------------------------------------------- |
||
47 | */ |
||
48 | |||
49 | /** |
||
50 | * Read the data from the store. |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | 24 | protected function read() |
|
60 | |||
61 | /** |
||
62 | * Write the data into the store. |
||
63 | * |
||
64 | * @param array $data |
||
65 | */ |
||
66 | 24 | protected function write(array $data) |
|
70 | } |
||
71 |