mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +08:00
fix(setting): change cache driver from octane to redis in Setting class
This commit is contained in:
+11
-1
@@ -14,7 +14,7 @@ class Setting
|
||||
private $cache;
|
||||
public function __construct()
|
||||
{
|
||||
$this->cache = Cache::store('octane');
|
||||
$this->cache = Cache::store('redis');
|
||||
}
|
||||
/**
|
||||
* 获取配置.
|
||||
@@ -89,4 +89,14 @@ class Setting
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 将所有设置转换为数组
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray(): array
|
||||
{
|
||||
return $this->fromDatabase();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user