X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FCache%2FAPCuCache.php;h=fd198ca3087e40795c6b994728256c7a39750cf7;hb=017a57cf1e2b7db6bed4abf7167b4086af73311c;hp=eb879590e79cfe58db79b134865367b8bdf05240;hpb=34e4968c060d0860f72f1d0120751e6cf8513dcb;p=friendica.git diff --git a/src/Core/Cache/APCuCache.php b/src/Core/Cache/APCuCache.php index eb879590e7..fd198ca308 100644 --- a/src/Core/Cache/APCuCache.php +++ b/src/Core/Cache/APCuCache.php @@ -1,16 +1,33 @@ . + * + */ namespace Friendica\Core\Cache; use Exception; -use Friendica\Core\Cache; +use Friendica\Core\BaseCache; /** * APCu Cache. - * - * @author Philipp Holzer */ -class APCuCache extends AbstractCache implements IMemoryCache +class APCuCache extends BaseCache implements IMemoryCache { use TraitCompareSet; use TraitCompareDelete; @@ -77,7 +94,7 @@ class APCuCache extends AbstractCache implements IMemoryCache /** * (@inheritdoc) */ - public function set($key, $value, $ttl = Cache::FIVE_MINUTES) + public function set($key, $value, $ttl = Duration::FIVE_MINUTES) { $cachekey = $this->getCacheKey($key); @@ -130,7 +147,7 @@ class APCuCache extends AbstractCache implements IMemoryCache /** * (@inheritdoc) */ - public function add($key, $value, $ttl = Cache::FIVE_MINUTES) + public function add($key, $value, $ttl = Duration::FIVE_MINUTES) { $cachekey = $this->getCacheKey($key); $cached = serialize($value); @@ -154,8 +171,11 @@ class APCuCache extends AbstractCache implements IMemoryCache return true; } - public function __toString() + /** + * {@inheritDoc} + */ + public function getName() { - return self::TYPE_APCU; + return Type::APCU; } }