PHP 클래스 Think\Session\Driver\Redis

상속: extends SessionHandle\SessionHandler
파일 보기 프로젝트 열기: top-think/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config
$handler Redis

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( $config = [] )

close() 공개 메소드

关闭Session
public close ( )

destroy() 공개 메소드

删除Session
public destroy ( string $sessID ) : boolean | void
$sessID string
리턴 boolean | void

gc() 공개 메소드

Session 垃圾回收
public gc ( string $sessMaxLifeTime ) : boolean
$sessMaxLifeTime string
리턴 boolean

open() 공개 메소드

打开Session
public open ( string $savePath, mixed $sessName ) : boolean
$savePath string
$sessName mixed
리턴 boolean

read() 공개 메소드

读取Session
public read ( string $sessID ) : boolean | string
$sessID string
리턴 boolean | string

write() 공개 메소드

写入Session
public write ( string $sessID, String $sessData ) : boolean
$sessID string
$sessData String
리턴 boolean

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected $config

$handler 보호되어 있는 프로퍼티

protected Redis,Think\Session\Driver $handler
리턴 Redis