PHP Класс Predis\Session\Handler
This class is mostly intended for PHP 5.4 but it can be used under PHP 5.3
provided that a polyfill for
SessionHandlerInterface is defined by either
you or an external package such as
symfony/http-foundation.
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
__construct ( Predis\ClientInterface $client, array $options = [] ) |
|
|
close ( ) |
|
|
destroy ( $session_id ) |
|
|
gc ( $maxlifetime ) |
|
|
getClient ( ) : Predis\ClientInterface |
Returns the underlying client instance. |
|
getMaxLifeTime ( ) : integer |
Returns the session max lifetime value. |
|
open ( $save_path, $session_id ) |
|
|
read ( $session_id ) |
|
|
register ( ) |
Registers this instance as the current session handler. |
|
write ( $session_id, $session_data ) |
|
|
Описание методов
__construct()
публичный Метод
public __construct ( Predis\ClientInterface $client, array $options = [] ) |
$client |
Predis\ClientInterface |
Fully initialized client instance. |
$options |
array |
Session handler options. |
destroy()
публичный Метод
public gc ( $maxlifetime ) |
getClient()
публичный Метод
Returns the underlying client instance.
public getClient ( ) : Predis\ClientInterface |
Результат |
Predis\ClientInterface |
|
getMaxLifeTime()
публичный Метод
Returns the session max lifetime value.
public open ( $save_path, $session_id ) |
public read ( $session_id ) |
register()
публичный Метод
Registers this instance as the current session handler.
public write ( $session_id, $session_data ) |
Описание свойств
$client защищенное свойство