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

Add flushing support to the Redis cache driver

parent 23d23dd0
......@@ -87,5 +87,15 @@ class Redis extends Driver {
{
$this->redis->del($key);
}
/**
* Flush the entire cache.
*
* @return void
*/
public function flush()
{
$this->redis->flushdb();
}
}
\ No newline at end of file
}
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