protected function getData($key = null) { if (null === $key) { return $this->getRedis()->hgetall($this->getRedisNamespace()); } return $this->getRedis()->hget($this->getRedisNamespace(), $key); }