Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用$predis->hmset(). 我需要使用哪些参数?我尝试了许多变体,但没有成功。
$predis->hmset()
$this->client()->hmset( $this->name, array( 1 => 3 )) $this->client()->hmset( $this->name, array( 1, 3 ))
从predis 示例中:
// Prepare an hash with some fields and their respective values. $client->hmset('metavars', array('foo' => 'bar', 'hoge' => 'piyo', 'lol' => 'wut'));
也许,请确保您使用字符串而不是整数...