diff --git a/src/Illuminate/Cache/RedisTaggedCache.php b/src/Illuminate/Cache/RedisTaggedCache.php index 12209caf0107..7a28d82d29e0 100644 --- a/src/Illuminate/Cache/RedisTaggedCache.php +++ b/src/Illuminate/Cache/RedisTaggedCache.php @@ -77,14 +77,14 @@ public function forever($key, $value) /** * Remove all items from the cache. * - * @return void + * @return bool */ public function flush() { $this->deleteForeverKeys(); $this->deleteStandardKeys(); - parent::flush(); + return parent::flush(); } /** diff --git a/src/Illuminate/Cache/TaggedCache.php b/src/Illuminate/Cache/TaggedCache.php index c37025d7c2de..88f1f8e31644 100644 --- a/src/Illuminate/Cache/TaggedCache.php +++ b/src/Illuminate/Cache/TaggedCache.php @@ -56,11 +56,13 @@ public function decrement($key, $value = 1) /** * Remove all items from the cache. * - * @return void + * @return bool */ public function flush() { $this->tags->reset(); + + return true; } /**