Add flushing support to the Redis cache driver
This commit is contained in:
parent
23d23dd07c
commit
31e21971a0
|
@ -88,4 +88,14 @@ public function forget($key)
|
|||
$this->redis->del($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush the entire cache.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function flush()
|
||||
{
|
||||
$this->redis->flushdb();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue