ThinkPHP5


think\session\driver\Memcache
library\think\session\driver\Memcache.php at line 17

Class Memcache

SessionHandler
└─Memcache

public class Memcache
extends SessionHandler


Constructor Summary
void

__construct(mixed config)

Method Summary
void

open(string savePath, mixed sessName)

打开Session

void

close()

关闭Session

void

read(string sessID)

读取Session

void

write(string sessID, String sessData)

写入Session

void

destroy(string sessID)

删除Session

void

gc(string sessMaxLifeTime)

Session 垃圾回收

Constructor Detail

library\think\session\driver\Memcache.php at line 22

__construct

public void __construct(mixed config)

Method Detail

library\think\session\driver\Memcache.php at line 33

open

public void open(string savePath, mixed sessName)

打开Session


library\think\session\driver\Memcache.php at line 60

close

public void close()

关闭Session


library\think\session\driver\Memcache.php at line 73

read

public void read(string sessID)

读取Session


library\think\session\driver\Memcache.php at line 84

write

public void write(string sessID, String sessData)

写入Session


library\think\session\driver\Memcache.php at line 94

destroy

public void destroy(string sessID)

删除Session


library\think\session\driver\Memcache.php at line 104

gc

public void gc(string sessMaxLifeTime)

Session 垃圾回收


ThinkPHP5