@@ -115,6 +115,8 @@ protected function setSavePath(): void
115
115
*
116
116
* @param string $path The path where to store/retrieve the session
117
117
* @param string $name The session name
118
+ *
119
+ * @throws RedisException
118
120
*/
119
121
public function open ($ path , $ name ): bool
120
122
{
@@ -154,6 +156,8 @@ public function open($path, $name): bool
154
156
*
155
157
* @return false|string Returns an encoded string of the read data.
156
158
* If nothing was read, it must return false.
159
+ *
160
+ * @throws RedisException
157
161
*/
158
162
#[ReturnTypeWillChange]
159
163
public function read ($ id )
@@ -184,6 +188,8 @@ public function read($id)
184
188
*
185
189
* @param string $id The session ID
186
190
* @param string $data The encoded session data
191
+ *
192
+ * @throws RedisException
187
193
*/
188
194
public function write ($ id , $ data ): bool
189
195
{
@@ -254,6 +260,8 @@ public function close(): bool
254
260
* Destroys a session
255
261
*
256
262
* @param string $id The session ID being destroyed
263
+ *
264
+ * @throws RedisException
257
265
*/
258
266
public function destroy ($ id ): bool
259
267
{
@@ -288,6 +296,8 @@ public function gc($max_lifetime)
288
296
* Acquires an emulated lock.
289
297
*
290
298
* @param string $sessionID Session ID
299
+ *
300
+ * @throws RedisException
291
301
*/
292
302
protected function lockSession (string $ sessionID ): bool
293
303
{
@@ -338,6 +348,8 @@ protected function lockSession(string $sessionID): bool
338
348
339
349
/**
340
350
* Releases a previously acquired lock
351
+ *
352
+ * @throws RedisException
341
353
*/
342
354
protected function releaseLock (): bool
343
355
{
0 commit comments