]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/RedisCache.php
- Move constants to the "Cache" class (more transparent than inside the interface)
[friendica.git] / src / Core / Cache / RedisCache.php
index 6f3a647c5579240ec2a9a05a100e726b9266e6c6..e3884e608657b5ac1f15906c27ee7554d1c1077a 100644 (file)
@@ -3,7 +3,6 @@
 namespace Friendica\Core\Cache;
 
 use Exception;
-use Friendica\Core\Cache;
 use Friendica\Core\Config\Configuration;
 use Redis;
 
@@ -13,7 +12,7 @@ use Redis;
  * @author Hypolite Petovan <hypolite@mrpetovan.com>
  * @author Roland Haeder <roland@mxchange.org>
  */
-class RedisCache extends AbstractCache implements IMemoryCache
+class RedisCache extends Cache implements IMemoryCache
 {
        /**
         * @var Redis
@@ -192,4 +191,9 @@ class RedisCache extends AbstractCache implements IMemoryCache
                $this->redis->unwatch();
                return false;
        }
+
+       public function __toString()
+       {
+               return self::TYPE_REDIS;
+       }
 }