/** * Clears all stored indexes * @param string $namespace * @return void */ public function clear(string $namespace) { $indexes = $this->redis->smembers("autocomplete:{$namespace}"); // Remove every index foreach ($indexes as $index) { $this->redis->del($index); } // Remove the general autocomplete index storage $this->redis->del("autocomplete:{$namespace}"); }
/** * {@inheritDoc} */ public function smembers($key) { return $this->predis->smembers($key); }