Merge pull request #1731 from dcelasun/master
Add flushing support to the Redis cache driver
This commit is contained in:
12
laravel/cache/drivers/redis.php
vendored
12
laravel/cache/drivers/redis.php
vendored
@@ -87,5 +87,15 @@ class Redis extends Driver {
|
||||
{
|
||||
$this->redis->del($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush the entire cache.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function flush()
|
||||
{
|
||||
$this->redis->flushdb();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user