1 | <?php |
||
7 | class RedisHandler implements SessionHandlerInterface |
||
8 | { |
||
9 | /** @var \Predis\Client */ |
||
10 | private $client; |
||
11 | |||
12 | /** @var int */ |
||
13 | private $expire; |
||
14 | |||
15 | /** |
||
16 | * @param \Predis\Client $client |
||
17 | * @param int $expire |
||
18 | */ |
||
19 | public function __construct(Client $client, $expire = 1800) |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function destroy($sessionId) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function read($sessionId) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function write($sessionId, $dataSet) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function gc($maxlifetime) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function open($savePath, $sessionId) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function close() |
||
76 | } |
||
77 |