Php 在Predis中使用hmset的问题
我在使用Php 在Predis中使用hmset的问题,php,redis,predis,Php,Redis,Predis,我在使用$predis->hmset()时遇到问题。我需要使用什么参数? 我尝试了许多变体,但没有成功 $this->client()->hmset( $this->name, array( 1 => 3 )) $this->client()->hmset( $this->name, array( 1, 3 )) 发件人: 也许,请确保使用字符串而不是整数…?错误与redis有关。Thx的答案:) // Prepare an hash with so
$predis->hmset()
时遇到问题。我需要使用什么参数?
我尝试了许多变体,但没有成功
$this->client()->hmset( $this->name, array( 1 => 3 ))
$this->client()->hmset( $this->name, array( 1, 3 ))
发件人:
也许,请确保使用字符串而不是整数…?错误与redis有关。Thx的答案:)
// Prepare an hash with some fields and their respective values.
$client->hmset('metavars', array('foo' => 'bar', 'hoge' => 'piyo', 'lol' => 'wut'));