2013-06-18 2 views
2

$predis->hmset()을 사용하는 데 문제가 있습니다. 어떤 매개 변수를 사용해야합니까? 많은 변형을 시도했지만 성공하지 못했습니다. the predis examples에서Predis에서 hmset 사용 관련 문제

$this->client()->hmset($this->name, array(1 => 3)) 

$this->client()->hmset($this->name, array(1, 3)) 
+0

https://github.com/nrk/predis/blob/v0.8 /FAQ.md#how-predis-implements-abstraction-of-redis-commands? –

답변

10

: 아마도

// Prepare an hash with some fields and their respective values. 
$client->hmset('metavars', array('foo' => 'bar', 'hoge' => 'piyo', 'lol' => 'wut')); 

, 당신은 문자열이 아닌 정수를 사용 확인 ...

+0

오류가 연결에 연결되었습니다. 답변에 대한 Thx :) – aieven