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.
Author: Daniele Alessandri ([email protected])
Inheritance: implements SessionHandlerInterface
Afficher le fichier Open project: tillkruss/redis-object-cache Class Usage Examples

Protected Properties

Свойство Type Description
$client
$ttl

Méthodes publiques

Méthode 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 méthode

public __construct ( Predis\ClientInterface $client, array $options = [] )
$client Predis\ClientInterface Fully initialized client instance.
$options array Session handler options.

close() public méthode

public close ( )

destroy() public méthode

public destroy ( $session_id )

gc() public méthode

public gc ( $maxlifetime )

getClient() public méthode

Returns the underlying client instance.
public getClient ( ) : Predis\ClientInterface
Résultat Predis\ClientInterface

getMaxLifeTime() public méthode

Returns the session max lifetime value.
public getMaxLifeTime ( ) : integer
Résultat integer

open() public méthode

public open ( $save_path, $session_id )

read() public méthode

public read ( $session_id )

register() public méthode

Registers this instance as the current session handler.
public register ( )

write() public méthode

public write ( $session_id, $session_data )

Property Details

$client protected_oe property

protected $client

$ttl protected_oe property

protected $ttl