mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-22 07:48:13 -05:00
fix(setting): change cache driver from octane to redis in Setting class
Some checks failed
Docker Build and Publish / build (push) Has been cancelled
Some checks failed
Docker Build and Publish / build (push) Has been cancelled
This commit is contained in:
parent
f42b42d6b1
commit
c45c2b9aba
@ -14,7 +14,7 @@ class Setting
|
|||||||
private $cache;
|
private $cache;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->cache = Cache::store('octane');
|
$this->cache = Cache::store('redis');
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 获取配置.
|
* 获取配置.
|
||||||
@ -89,4 +89,14 @@ class Setting
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将所有设置转换为数组
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function toArray(): array
|
||||||
|
{
|
||||||
|
return $this->fromDatabase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user