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