| 1 | <?php |
||
| 12 | class Redis implements StorageInterface |
||
| 13 | { |
||
| 14 | private $redis; |
||
| 15 | private $hash; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor |
||
| 19 | * |
||
| 20 | * @param Client $redis [description] |
||
| 21 | * @param string $hash [description] |
||
| 22 | */ |
||
| 23 | public function __construct(Client $redis, $hash = 'config') |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function save($key, $value) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritdoc |
||
| 50 | */ |
||
| 51 | public function load() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | public function clear() |
||
| 63 | |||
| 64 | private function delKey($key) |
||
| 73 | } |
||
| 74 |