redisd get方法允许指定主从节点

This commit is contained in:
尘缘
2016-05-08 23:32:18 +08:00
parent cb7f4e8d57
commit fb420d5acf

View File

@@ -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 {