\framework\components\session\driverRedis

Summary

Methods
Properties
Constants
__construct()
open()
close()
read()
write()
destroy()
gc()
No public properties found
No constants found
No protected methods found
$_handler
$_conf
N/A
No private methods found
No private properties found
N/A

Properties

$_handler

$_handler : 

Type

$_conf

$_conf : 

Type

Methods

__construct()

__construct(  $config = array()) 

Parameters

$config

open()

open(string  $savePath, mixed  $sessName) : boolean

打开Session

Parameters

string $savePath
mixed $sessName

Throws

\framework\components\session\driver\Exception

Returns

boolean

close()

close() 

关闭Session

read()

read(string  $sessID) : string

读取Session

Parameters

string $sessID

Returns

string

write()

write(string  $sessID, String  $sessData) : boolean

写入Session

Parameters

string $sessID
String $sessData

Returns

boolean

destroy()

destroy(string  $sessID) : boolean

删除Session

Parameters

string $sessID

Returns

boolean

gc()

gc(string  $sessMaxLifeTime) : boolean

Session 垃圾回收

Parameters

string $sessMaxLifeTime

Returns

boolean