【发布时间】:2013-06-18 16:37:13
【问题描述】:
我在使用$predis->hmset() 时遇到问题。我需要使用哪些参数?
我尝试了许多变体,但都没有成功。
$this->client()->hmset( $this->name, array( 1 => 3 ))
$this->client()->hmset( $this->name, array( 1, 3 ))
【问题讨论】:
我在使用$predis->hmset() 时遇到问题。我需要使用哪些参数?
我尝试了许多变体,但都没有成功。
$this->client()->hmset( $this->name, array( 1 => 3 ))
$this->client()->hmset( $this->name, array( 1, 3 ))
【问题讨论】:
// Prepare an hash with some fields and their respective values.
$client->hmset('metavars', array('foo' => 'bar', 'hoge' => 'piyo', 'lol' => 'wut'));
也许,请确保您使用的是字符串而不是整数...
【讨论】: