PHP Class Bluz\Session\Adapter\Redis

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

Protected Properties

Property Type Description
$settings default Redis settings

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

Property Details

$settings protected_oe property

default Redis settings
protected $settings