Definition at line 17 of file Redis.php.
◆ __construct()
- Parameters
-
ConfigInterface | $config | |
LoggerInterface | $logger | |
Filesystem | $filesystem | |
- Exceptions
-
Definition at line 45 of file Redis.php.
◆ close()
Overridden to prevent calling getLifeTime at shutdown
- Returns
- bool
- Exceptions
-
Definition at line 132 of file Redis.php.
134 return $this->getConnection()->close();
◆ destroy()
Destroy session
- Parameters
-
- Returns
- boolean
- Exceptions
-
Definition at line 121 of file Redis.php.
123 return $this->getConnection()->destroy($sessionId);
◆ gc()
Garbage collection
- Parameters
-
- Returns
- boolean
- Exceptions
-
SessionException | @SuppressWarnings(PHPMD.ShortMethodName) |
Definition at line 145 of file Redis.php.
147 return $this->getConnection()->gc($maxLifeTime);
◆ getFailedLockAttempts()
getFailedLockAttempts |
( |
| ) |
|
Get the number of failed lock attempts
- Returns
- int
- Exceptions
-
Definition at line 156 of file Redis.php.
158 return $this->getConnection()->getFailedLockAttempts();
◆ open()
open |
( |
|
$savePath, |
|
|
|
$sessionName |
|
) |
| |
Open session
- Parameters
-
string | $savePath | ignored |
string | $sessionName | ignored |
- Returns
- bool
- Exceptions
-
Definition at line 79 of file Redis.php.
81 return $this->getConnection()->open($savePath, $sessionName);
◆ read()
Fetch session data
- Parameters
-
- Returns
- string
- Exceptions
-
ConcurrentConnectionsExceededException | |
SessionException | |
Definition at line 92 of file Redis.php.
95 return $this->getConnection()->read($sessionId);
96 }
catch (ConcurrentConnectionsExceededException $e) {
97 require $this->filesystem->getDirectoryRead(
DirectoryList::PUB)->getAbsolutePath(
'errors/503.php');
◆ write()
write |
( |
|
$sessionId, |
|
|
|
$sessionData |
|
) |
| |
Update session
- Parameters
-
string | $sessionId | |
string | $sessionData | |
- Returns
- boolean
- Exceptions
-
Definition at line 109 of file Redis.php.
111 return $this->getConnection()->write($sessionId, $sessionData);
The documentation for this class was generated from the following file:
- vendor/magento/framework/Session/SaveHandler/Redis.php