Example #1
0
 public function testMultiSet()
 {
     $reply = $this->hash->set(array('a' => '1', 'b' => 2));
     $this->assertTrue($reply);
     $reply = $this->rediska->getFromHash('test', array('a', 'b'));
     $this->assertEquals(array('a' => '1', 'b' => 2), $reply);
 }
Example #2
0
 public function ulistSet($ulistKey, $safeKey = null, $val = null)
 {
     $MSet = new Rediska_Key_Hash($ulistKey);
     $MSet->setRediska($this->Rediska);
     return $MSet->set($safeKey, $val);
 }