Commit 31e21971 authored by Duru Can Celasun's avatar Duru Can Celasun

Add flushing support to the Redis cache driver

parent 23d23dd0
......@@ -88,4 +88,14 @@ class Redis extends Driver {
$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