X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FCache%2FIMemoryCache.php;h=8348dffbc4eb40c48f17a50d06dbe9bfaa46322e;hb=aa0b485f3dca72c5448076e913fa54d948cd7731;hp=339f72d04a37161d1e47ae34b3a9324495ffffb8;hpb=d2211bd6ddc7d860f123a06f66b70a5c239a4084;p=friendica.git diff --git a/src/Core/Cache/IMemoryCache.php b/src/Core/Cache/IMemoryCache.php index 339f72d04a..8348dffbc4 100644 --- a/src/Core/Cache/IMemoryCache.php +++ b/src/Core/Cache/IMemoryCache.php @@ -1,13 +1,28 @@ . + * + */ namespace Friendica\Core\Cache; /** * This interface defines methods for Memory-Caches only - * - * Interface IMemoryCache - * - * @package Friendica\Core\Cache */ interface IMemoryCache extends ICache { @@ -19,7 +34,7 @@ interface IMemoryCache extends ICache * @param int $ttl The cache lifespan, must be one of the Cache constants * @return bool */ - public function add($key, $value, $ttl = Cache::FIVE_MINUTES); + public function add($key, $value, $ttl = Duration::FIVE_MINUTES); /** * Compares if the old value is set and sets the new value @@ -31,7 +46,7 @@ interface IMemoryCache extends ICache * * @return bool */ - public function compareSet($key, $oldValue, $newValue, $ttl = Cache::FIVE_MINUTES); + public function compareSet($key, $oldValue, $newValue, $ttl = Duration::FIVE_MINUTES); /** * Compares if the old value is set and removes it