From af7d7715e01485a3e4a95bb7e0becc7231510a89 Mon Sep 17 00:00:00 2001 From: Roman Domrachev Date: Wed, 27 Apr 2016 18:36:12 +0300 Subject: [PATCH] Add flushHot method --- src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php b/src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php index 0c362ba..93a1dba 100644 --- a/src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php +++ b/src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php @@ -139,6 +139,14 @@ public function flush() return $this->cache->flush(); } + /** + * Flush only hot-cache + */ + public function flushHot() + { + $this->hot = []; + } + /** * {@inheritdoc} */