1 | <?php |
||
13 | final class SimpleCacheSessionHandler implements \SessionHandlerInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var CacheInterface |
||
17 | */ |
||
18 | private $cache; |
||
19 | |||
20 | /** |
||
21 | * @param CacheInterface $cache |
||
22 | */ |
||
23 | 13 | public function __construct(CacheInterface $cache) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function close() |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 3 | public function destroy($session_id) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 1 | public function gc($maxlifetime) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 1 | public function open($save_path, $name) |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 2 | public function read($session_id) |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 3 | public function write($session_id, $session_data) |
|
87 | } |
||
88 |