Methods

__construct()

__construct($config) 

Parameters

$config

validate a driver config value

_validate_config(array $config) : array

Parameters

$config

array

array with configuration values

Returns

arrayvalidated and consolidated config

destroy the current session

destroy() : \Session_Redis

Returns

\Session_Redis

Reads the redis entry

_read_redis($session_id) : \Fuel\Core\mixed,

Parameters

$session_id

Returns

\Fuel\Core\mixed,the payload if the file exists, or false if not

Writes the redis entry

_write_redis($session_id, $payload) : \Fuel\Core\boolean,

Parameters

$session_id

$payload

Returns

\Fuel\Core\boolean,true if it was an existing session, false if not

driver initialisation

init() : void

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

Exceptions

\FuelException

Returns

\Session_Driver

write the session

write() : \Session_Redis

Returns

\Session_Redis

 Properties

 

array of driver config defaults

$_defaults 

 

$redis

$redis