Methods

__construct()

__construct($config) 

Parameters

$config

validate a driver config value

_validate_config(array $config) : array

Parameters

$config

array

array with configuration values

Exceptions

\FuelException

Returns

arrayvalidated and consolidated config

destroy the current session

destroy() : \Fuel\Core\Session_Memcached

fluent This method is part of a fluent interface and will return the same instance

Exceptions

\FuelException

Returns

Reads the memcached entry

_read_memcached($session_id) : mixed

Parameters

$session_id

Returns

mixedthe payload if the file exists, or false if not

Writes the memcached entry

_write_memcached($session_id, $payload) 

Parameters

$session_id

$payload

Exceptions

\FuelException

driver initialisation

init() 

Exceptions

\FuelException

read the session

read(bool $force) : \Session_Driver

Parameters

$force

bool

set to true if we want to force a new session to be created

Returns

\Session_Driver

write the session

write() : \Session_Memcached

Returns

\Session_Memcached

 Properties

 

array of driver config defaults

$_defaults 

 

$memcached

$memcached