1 | <?php |
||
39 | class Memory extends Session { |
||
40 | protected $data; |
||
41 | |||
42 | public function __construct($name) { |
||
46 | |||
47 | /** |
||
48 | * @param string $key |
||
49 | * @param integer $value |
||
50 | */ |
||
51 | public function set($key, $value) { |
||
55 | |||
56 | /** |
||
57 | * @param string $key |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function get($key) { |
||
66 | |||
67 | /** |
||
68 | * @param string $key |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function exists($key) { |
||
74 | |||
75 | /** |
||
76 | * @param string $key |
||
77 | */ |
||
78 | public function remove($key) { |
||
82 | |||
83 | public function clear() { |
||
86 | |||
87 | /** |
||
88 | * Stub since the session ID does not need to get regenerated for the cache |
||
89 | * |
||
90 | * @param bool $deleteOldSession |
||
91 | */ |
||
92 | public function regenerateId($deleteOldSession = true) {} |
||
93 | |||
94 | /** |
||
95 | * Wrapper around session_id |
||
96 | * |
||
97 | * @return string |
||
98 | * @throws SessionNotAvailableException |
||
99 | * @since 9.1.0 |
||
100 | */ |
||
101 | public function getId() { |
||
104 | |||
105 | /** |
||
106 | * Helper function for PHPUnit execution - don't use in non-test code |
||
107 | */ |
||
108 | public function reopen() { |
||
111 | |||
112 | /** |
||
113 | * In case the session has already been locked an exception will be thrown |
||
114 | * |
||
115 | * @throws Exception |
||
116 | */ |
||
117 | private function validateSession() { |
||
122 | } |
||
123 |