PHP 클래스 CI_Session_memcached_driver, TastyIgniter

상속: extends CI_Session_driver, implements SessionHandlerInterface
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

보호된 프로퍼티들

프로퍼티 타입 설명
$_key_prefix string Key prefix
$_lock_key string Lock key
$_memcached Memcached Memcached instance

공개 메소드들

메소드 설명
__construct ( array &$params ) : void Class constructor
close ( ) : boolean Close
destroy ( string $session_id ) : boolean Destroy
gc ( integer $maxlifetime ) : boolean Garbage Collector
open ( string $save_path, string $name ) : boolean Open
read ( string $session_id ) : string Read
write ( string $session_id, string $session_data ) : boolean Write

보호된 메소드들

메소드 설명
_get_lock ( string $session_id ) : boolean Get lock
_release_lock ( ) : boolean Release lock

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
리턴 void

_get_lock() 보호된 메소드

Acquires an (emulated) lock.
protected _get_lock ( string $session_id ) : boolean
$session_id string Session ID
리턴 boolean

_release_lock() 보호된 메소드

Releases a previously acquired lock
protected _release_lock ( ) : boolean
리턴 boolean

close() 공개 메소드

Releases locks and closes connection.
public close ( ) : boolean
리턴 boolean

destroy() 공개 메소드

Destroys the current session.
public destroy ( string $session_id ) : boolean
$session_id string Session ID
리턴 boolean

gc() 공개 메소드

Deletes expired sessions
public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer Maximum lifetime of sessions
리턴 boolean

open() 공개 메소드

Sanitizes save_path and initializes connections.
public open ( string $save_path, string $name ) : boolean
$save_path string Server path(s)
$name string Session cookie name, unused
리턴 boolean

read() 공개 메소드

Reads session data and acquires a lock
public read ( string $session_id ) : string
$session_id string Session ID
리턴 string Serialized session data

write() 공개 메소드

Writes (create / update) session data
public write ( string $session_id, string $session_data ) : boolean
$session_id string Session ID
$session_data string Serialized session data
리턴 boolean

프로퍼티 상세

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

Key prefix
protected string $_key_prefix
리턴 string

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

Lock key
protected string $_lock_key
리턴 string

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

Memcached instance
protected Memcached $_memcached
리턴 Memcached