(dev/core#174) Add concrete classes for cache exceptions
[civicrm-core.git] / CRM / Utils / Cache / Redis.php
index f18d3b8d8b2aa46c56cf0df329625b799237a846..01fc538c9355cd38af7dd5b35bbd5a3ae4c2dcaf 100644 (file)
@@ -35,6 +35,7 @@
 class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface {
 
   use CRM_Utils_Cache_NaiveMultipleTrait; // TODO Consider native implementation.
+  use CRM_Utils_Cache_NaiveHasTrait; // TODO Native implementation
 
   const DEFAULT_HOST    = 'localhost';
   const DEFAULT_PORT    = 6379;
@@ -172,4 +173,8 @@ class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface {
     return TRUE;
   }
 
+  public function clear() {
+    return $this->flush();
+  }
+
 }