Пример #1
0
 public function testHDel()
 {
     $redis = $this->getRedis();
     list($hashKey, $key) = RedisHelper::hashKey('group_', 'group');
     $status = $redis->hDel($hashKey, $key);
     $this->assertEmpty($redis->hGet($hashKey, $key));
 }
Пример #2
0
 /**
  * to do hash
  */
 public function destroy($sessionId)
 {
     list($hashKey, $key) = RedisHelper::hashKey($this->prefix, $sessionId);
     return $this->redis->hDel($hashKey, $key);
 }