PHP Class Bluz\Session\Adapter\Cache

Inheritance: extends Bluz\Session\Adapter\AbstractAdapter, implements SessionHandlerInterface
Mostrar archivo Open project: bluzphp/framework

Public Methods

Method Description
__construct ( array $settings = [] ) Check and setup Redis server
destroy ( integer $id ) : boolean | void Destroy a session
read ( string $id ) : boolean | string Read session data
write ( string $id, string $data ) : boolean | void Write session data

Method Details

__construct() public method

Check and setup Redis server
public __construct ( array $settings = [] )
$settings array

destroy() public method

Destroy a session
public destroy ( integer $id ) : boolean | void
$id integer
return boolean | void

read() public method

Read session data
public read ( string $id ) : boolean | string
$id string
return boolean | string

write() public method

Write session data
public write ( string $id, string $data ) : boolean | void
$id string
$data string
return boolean | void