PHP Class Think\Session\Driver\Redis

Inheritance: extends SessionHandle\SessionHandler
Afficher le fichier Open project: top-think/framework Class Usage Examples

Protected Properties

Свойство Type Description
$config
$handler Redis

Méthodes publiques

Méthode Description
__construct ( $config = [] )
close ( ) 关闭Session
destroy ( string $sessID ) : boolean | void 删除Session
gc ( string $sessMaxLifeTime ) : boolean Session 垃圾回收
open ( string $savePath, mixed $sessName ) : boolean 打开Session
read ( string $sessID ) : boolean | string 读取Session
write ( string $sessID, String $sessData ) : boolean 写入Session

Method Details

__construct() public méthode

public __construct ( $config = [] )

close() public méthode

关闭Session
public close ( )

destroy() public méthode

删除Session
public destroy ( string $sessID ) : boolean | void
$sessID string
Résultat boolean | void

gc() public méthode

Session 垃圾回收
public gc ( string $sessMaxLifeTime ) : boolean
$sessMaxLifeTime string
Résultat boolean

open() public méthode

打开Session
public open ( string $savePath, mixed $sessName ) : boolean
$savePath string
$sessName mixed
Résultat boolean

read() public méthode

读取Session
public read ( string $sessID ) : boolean | string
$sessID string
Résultat boolean | string

write() public méthode

写入Session
public write ( string $sessID, String $sessData ) : boolean
$sessID string
$sessData String
Résultat boolean

Property Details

$config protected_oe property

protected $config

$handler protected_oe property

protected Redis,Think\Session\Driver $handler
Résultat Redis