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
Datei anzeigen Open project: tillkruss/redis-object-cache Class Usage Examples

Protected Properties

Property Type Description
$client
$ttl

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.

close() public method

public close ( )

destroy() public method

public destroy ( $session_id )

gc() public method

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 getMaxLifeTime ( ) : integer
return integer

open() public method

public open ( $save_path, $session_id )

read() public method

public read ( $session_id )

register() public method

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

write() public method

public write ( $session_id, $session_data )

Property Details

$client protected_oe property

protected $client

$ttl protected_oe property

protected $ttl