X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FCache%2FTraitCompareDelete.php;h=508a2c866ffd248855f343feab8796daab13d199;hb=aa0b485f3dca72c5448076e913fa54d948cd7731;hp=a553f875160038f23c1fc73f5c13be8873373d34;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/src/Core/Cache/TraitCompareDelete.php b/src/Core/Cache/TraitCompareDelete.php index a553f87516..508a2c866f 100644 --- a/src/Core/Cache/TraitCompareDelete.php +++ b/src/Core/Cache/TraitCompareDelete.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -6,18 +25,16 @@ namespace 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