mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +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
|
* @param string $name 缓存key
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function get($name)
|
public function get($name, $master = false)
|
||||||
{
|
{
|
||||||
$this->master(false);
|
$this->master($master);
|
||||||
|
|
||||||
$value = null;
|
$value = null;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user