mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进session驱动
This commit is contained in:
@@ -19,7 +19,7 @@ class Memcache extends SessionHandler
|
|||||||
protected $handler = null;
|
protected $handler = null;
|
||||||
protected $config = [
|
protected $config = [
|
||||||
'host' => '127.0.0.1', // memcache主机
|
'host' => '127.0.0.1', // memcache主机
|
||||||
'port' => 1121, // memcache端口
|
'port' => 11211, // memcache端口
|
||||||
'expire' => 3600, // session有效期
|
'expire' => 3600, // session有效期
|
||||||
'timeout' => 0, // 连接超时时间(单位:毫秒)
|
'timeout' => 0, // 连接超时时间(单位:毫秒)
|
||||||
'persistent' => true, // 长连接
|
'persistent' => true, // 长连接
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class Memcached extends SessionHandler
|
|||||||
protected $handler = null;
|
protected $handler = null;
|
||||||
protected $config = [
|
protected $config = [
|
||||||
'host' => '127.0.0.1', // memcache主机
|
'host' => '127.0.0.1', // memcache主机
|
||||||
'port' => 1121, // memcache端口
|
'port' => 11211, // memcache端口
|
||||||
'expire' => 3600, // session有效期
|
'expire' => 3600, // session有效期
|
||||||
'timeout' => 0, // 连接超时时间(单位:毫秒)
|
'timeout' => 0, // 连接超时时间(单位:毫秒)
|
||||||
'session_name' => '', // memcache key前缀
|
'session_name' => '', // memcache key前缀
|
||||||
|
|||||||
Reference in New Issue
Block a user