Add flushing support to the Redis cache driver
This commit is contained in:
10
laravel/cache/drivers/redis.php
vendored
10
laravel/cache/drivers/redis.php
vendored
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user