/** * @param string $key * @return int */ public function count($key = '') { if (!$key) { return 0; } return $this->client->lLen($key); }