PHP Class CI_Session_memcached_driver, TastyIgniter

Inheritance: extends CI_Session_driver, implements SessionHandlerInterface
Afficher le fichier Open project: tastyigniter/tastyigniter

Protected Properties

Свойство Type Description
$_key_prefix string Key prefix
$_lock_key string Lock key
$_memcached Memcached Memcached instance

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
_get_lock ( string $session_id ) : boolean Get lock
_release_lock ( ) : boolean Release lock

Method Details

__construct() public méthode

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
Résultat void

_get_lock() protected méthode

Acquires an (emulated) lock.
protected _get_lock ( string $session_id ) : boolean
$session_id string Session ID
Résultat boolean

_release_lock() protected méthode

Releases a previously acquired lock
protected _release_lock ( ) : boolean
Résultat boolean

close() public méthode

Releases locks and closes connection.
public close ( ) : boolean
Résultat boolean

destroy() public méthode

Destroys the current session.
public destroy ( string $session_id ) : boolean
$session_id string Session ID
Résultat boolean

gc() public méthode

Deletes expired sessions
public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer Maximum lifetime of sessions
Résultat boolean

open() public méthode

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
Résultat boolean

read() public méthode

Reads session data and acquires a lock
public read ( string $session_id ) : string
$session_id string Session ID
Résultat string Serialized session data

write() public méthode

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
Résultat boolean

Property Details

$_key_prefix protected_oe property

Key prefix
protected string $_key_prefix
Résultat string

$_lock_key protected_oe property

Lock key
protected string $_lock_key
Résultat string

$_memcached protected_oe property

Memcached instance
protected Memcached $_memcached
Résultat Memcached