]> git.mxchange.org Git - friendica.git/commitdiff
AbstractCacheDriver now working for each CacheDriver
authorPhilipp Holzer <admin@philipp.info>
Thu, 5 Jul 2018 19:54:20 +0000 (21:54 +0200)
committerPhilipp Holzer <admin@philipp.info>
Thu, 5 Jul 2018 19:54:20 +0000 (21:54 +0200)
src/Core/Cache/AbstractCacheDriver.php
src/Core/Cache/ArrayCache.php
src/Core/Cache/DatabaseCacheDriver.php
src/Core/Cache/MemcacheCacheDriver.php
src/Core/Cache/MemcachedCacheDriver.php
src/Core/Cache/RedisCacheDriver.php

index 6974dff1bdba3cd1d9f7a52c15524833b21993cc..ac33467b9649a2ead2dc5b8a7fe9714e908908b4 100644 (file)
@@ -11,7 +11,7 @@ use Friendica\BaseObject;
  *
  * @package Friendica\Core\Cache
  */
-abstract class AbstractCacheDriver extends BaseObject implements IMemoryCacheDriver
+abstract class AbstractCacheDriver extends BaseObject
 {
        /**
         * @param string $key   The original key
index 714021c7239257a1ed5754641abc181cb0aaf98e..ec9f3a2577fda4e0691c67b1452691ad75d25a8b 100644 (file)
@@ -12,7 +12,7 @@ use Friendica\Core\Cache;
  *
  * @package Friendica\Core\Cache
  */
-class ArrayCache extends AbstractCacheDriver
+class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
 {
        use TraitCompareDelete;
 
index 0838a66c7a206ac7d81dab94c6da5fddf417ffa9..5c71fb19623cab9f3ce3ecf2b0e9a4e8bf99f71e 100644 (file)
@@ -12,7 +12,7 @@ use Friendica\Util\DateTimeFormat;
  *
  * @author Hypolite Petovan <mrpetovan@gmail.com>
  */
-class DatabaseCacheDriver implements ICacheDriver
+class DatabaseCacheDriver extends AbstractCacheDriver implements ICacheDriver
 {
        public function get($key)
        {
index 9c16d55312ce0a1aad1d9d5775e1fba3fd9850d9..af7e5ab0e226df58e0289ec862a27cac04b43a9d 100644 (file)
@@ -9,7 +9,7 @@ use Friendica\Core\Cache;
  *
  * @author Hypolite Petovan <mrpetovan@gmail.com>
  */
-class MemcacheCacheDriver extends AbstractCacheDriver
+class MemcacheCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
 {
        use TraitCompareSet;
        use TraitCompareDelete;
index 52b6a08cf10642f53fb9ca985d03d7f733580164..819cf71c5c6fba73676137f6d04a359b922d6e09 100644 (file)
@@ -9,7 +9,7 @@ use Friendica\Core\Cache;
  *
  * @author Hypolite Petovan <mrpetovan@gmail.com>
  */
-class MemcachedCacheDriver extends AbstractCacheDriver
+class MemcachedCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
 {
        use TraitCompareSet;
        use TraitCompareDelete;
index 8f85e67d7863ae55bb8fd7bba5e4caa947d113cf..67df8e8fee21904dee1583074c411a91fb8a0376 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\Core\Cache;
  * @author Hypolite Petovan <mrpetovan@gmail.com>
  * @author Roland Haeder <roland@mxchange.org>
  */
-class RedisCacheDriver extends AbstractCacheDriver
+class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
 {
        /**
         * @var \Redis