Commit 158b8197 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1731 from dcelasun/master

Add flushing support to the Redis cache driver
parents 457d0f17 31e21971
...@@ -88,4 +88,14 @@ class Redis extends Driver { ...@@ -88,4 +88,14 @@ class Redis extends Driver {
$this->redis->del($key); $this->redis->del($key);
} }
/**
* Flush the entire cache.
*
* @return void
*/
public function flush()
{
$this->redis->flushdb();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment