PHP Class 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.
Mostra file
Open project: tillkruss/redis-object-cache
Class Usage Examples
Protected Properties
Public Methods
Method |
Description |
|
__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 ) |
|
|
Method Details
__construct()
public method
public __construct ( Predis\ClientInterface $client, array $options = [] ) |
$client |
Predis\ClientInterface |
Fully initialized client instance. |
$options |
array |
Session handler options. |
public gc ( $maxlifetime ) |
getClient()
public method
Returns the underlying client instance.
public getClient ( ) : Predis\ClientInterface |
return |
Predis\ClientInterface |
|
getMaxLifeTime()
public method
Returns the session max lifetime value.
public open ( $save_path, $session_id ) |
public read ( $session_id ) |
Registers this instance as the current session handler.
public write ( $session_id, $session_data ) |
Property Details
$client protected_oe property
$ttl protected_oe property