mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 13:12:49 +08:00
redisd get方法允许指定主从节点
This commit is contained in:
4
library/think/cache/driver/Redisd.php
vendored
4
library/think/cache/driver/Redisd.php
vendored
@@ -198,9 +198,9 @@ class Redisd
|
||||
* @param string $name 缓存key
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($name)
|
||||
public function get($name, $master = false)
|
||||
{
|
||||
$this->master(false);
|
||||
$this->master($master);
|
||||
|
||||
$value = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user