コード例 #1
0
 function get_basic_hashes($iterations = 15000)
 {
     $result = array();
     for ($i = 0; $i < $iterations; $i++) {
         $hash = new Rediska_Key_Hash($this->hash_variable . $i);
         $result[] = $hash->getValues();
     }
     return $result;
 }
コード例 #2
0
ファイル: HashTest.php プロジェクト: r-kovalenko/Rediska
 public function testGetValues()
 {
     $this->rediska->setToHash('test', array('a' => '1', 'b' => 2));
     $reply = $this->hash->getValues();
     $this->assertEquals(array('1', 2), $reply);
 }