Add flushing support to the Redis cache driver

This commit is contained in:
Duru Can Celasun
2013-02-20 09:17:59 +02:00
parent 23d23dd07c
commit 31e21971a0

View File

@@ -87,5 +87,15 @@ class Redis extends Driver {
{
$this->redis->del($key);
}
/**
* Flush the entire cache.
*
* @return void
*/
public function flush()
{
$this->redis->flushdb();
}
}
}