PHP Class ManaPHP\Http\Session\Adapter\Redis

Inheritance: extends ManaPHP\Component, implements ManaPHP\Http\Session\AdapterInterface
Show file Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_prefix string
$_ttl integer

Public Methods

Method Description
__construct ( array $options = [] ) Redis constructor.
clean ( ) : void
close ( ) : boolean
destroy ( string $sessionId ) : boolean
gc ( integer $ttl ) : boolean
open ( string $savePath, string $sessionName ) : boolean
read ( string $sessionId ) : string
write ( string $sessionId, string $data ) : void

Method Details

__construct() public method

Redis constructor.
public __construct ( array $options = [] )
$options array

clean() public method

public clean ( ) : void
return void

close() public method

public close ( ) : boolean
return boolean

destroy() public method

public destroy ( string $sessionId ) : boolean
$sessionId string
return boolean

gc() public method

public gc ( integer $ttl ) : boolean
$ttl integer
return boolean

open() public method

public open ( string $savePath, string $sessionName ) : boolean
$savePath string
$sessionName string
return boolean

read() public method

public read ( string $sessionId ) : string
$sessionId string
return string

write() public method

public write ( string $sessionId, string $data ) : void
$sessionId string
$data string
return void

Property Details

$_prefix protected property

protected string $_prefix
return string

$_ttl protected property

protected int $_ttl
return integer