You are here

public function Redis_Queue_PhpRedis::deleteQueue in Redis 7.3

Same name and namespace in other branches
  1. 7.2 lib/Redis/Queue/PhpRedis.php \Redis_Queue_PhpRedis::deleteQueue()

Delete a queue and every item in the queue.

Overrides DrupalQueueInterface::deleteQueue

File

lib/Redis/Queue/PhpRedis.php, line 97

Class

Redis_Queue_PhpRedis
@todo Set high expire value to the hash for rotation when memory is empty React upon cache clear all and rebuild path list?

Code

public function deleteQueue() {
  $this
    ->getClient()
    ->del($this
    ->getKeyForQueue(), $this
    ->getKeyForClaimed(), $this
    ->getKeyForData());
}