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.
저자: Daniele Alessandri ([email protected])
상속: implements SessionHandlerInterface
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$client
$ttl

공개 메소드들

메소드 설명
__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.

close() 공개 메소드

public close ( )

destroy() 공개 메소드

public destroy ( $session_id )

gc() 공개 메소드

public gc ( $maxlifetime )

getClient() 공개 메소드

Returns the underlying client instance.
public getClient ( ) : Predis\ClientInterface
리턴 Predis\ClientInterface

getMaxLifeTime() 공개 메소드

Returns the session max lifetime value.
public getMaxLifeTime ( ) : integer
리턴 integer

open() 공개 메소드

public open ( $save_path, $session_id )

read() 공개 메소드

public read ( $session_id )

register() 공개 메소드

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

write() 공개 메소드

public write ( $session_id, $session_data )

프로퍼티 상세

$client 보호되어 있는 프로퍼티

protected $client

$ttl 보호되어 있는 프로퍼티

protected $ttl