X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FCache%2FTraitCompareDelete.php;h=508a2c866ffd248855f343feab8796daab13d199;hb=aa0b485f3dca72c5448076e913fa54d948cd7731;hp=ef59f69cd17f4fd1a5d868337d4d517720480b68;hpb=3eec97aa6e84961c8d2ce2ea3f47d92f0e4bdb4f;p=friendica.git diff --git a/src/Core/Cache/TraitCompareDelete.php b/src/Core/Cache/TraitCompareDelete.php index ef59f69cd1..508a2c866f 100644 --- a/src/Core/Cache/TraitCompareDelete.php +++ b/src/Core/Cache/TraitCompareDelete.php @@ -1,25 +1,40 @@ . + * + */ namespace Friendica\Core\Cache; -use Friendica\Core\Cache; - /** * Trait TraitCompareSetDelete * * This Trait is to compensate non native "exclusive" sets/deletes in caches - * - * @package Friendica\Core\Cache */ trait TraitCompareDelete { abstract public function get($key); - abstract public function set($key, $value, $ttl = Cache::FIVE_MINUTES); + abstract public function set($key, $value, $ttl = Duration::FIVE_MINUTES); abstract public function delete($key); - abstract public function add($key, $value, $ttl = Cache::FIVE_MINUTES); + abstract public function add($key, $value, $ttl = Duration::FIVE_MINUTES); /** * NonNative - Compares if the old value is set and removes it