mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进Handle类支持异常的多语言 Lang类增加has方法 增加核心中文语言包
This commit is contained in:
@@ -41,7 +41,7 @@ class Memcache extends SessionHandler
|
||||
{
|
||||
// 检测php环境
|
||||
if (!extension_loaded('memcache')) {
|
||||
throw new Exception('_NOT_SUPPERT_:memcache');
|
||||
throw new Exception('not support:memcache');
|
||||
}
|
||||
$this->handler = new \Memcache;
|
||||
// 支持集群
|
||||
|
||||
@@ -42,7 +42,7 @@ class Memcached extends SessionHandler
|
||||
{
|
||||
// 检测php环境
|
||||
if (!extension_loaded('memcached')) {
|
||||
throw new Exception('_NOT_SUPPERT_:memcached');
|
||||
throw new Exception('not support:memcached');
|
||||
}
|
||||
$this->handler = new \Memcached;
|
||||
// 设置连接超时时间(单位:毫秒)
|
||||
|
||||
@@ -42,7 +42,7 @@ class Redis extends SessionHandler
|
||||
{
|
||||
// 检测php环境
|
||||
if (!extension_loaded('redis')) {
|
||||
throw new Exception('_NOT_SUPPERT_:redis');
|
||||
throw new Exception('not support:redis');
|
||||
}
|
||||
$this->handler = new \Redis;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user