mirror of
https://github.com/friendica/friendica
synced 2025-04-23 17:10:11 +00:00
code standards / simplifications
This commit is contained in:
parent
19209f6826
commit
906bb25972
18 changed files with 70 additions and 121 deletions
|
@ -7,7 +7,7 @@ use Friendica\Core\Cache;
|
|||
/**
|
||||
* Trait TraitCompareSetDelete
|
||||
*
|
||||
* @brief This Trait is to compensate non native "exclusive" sets/deletes in caches
|
||||
* This Trait is to compensate non native "exclusive" sets/deletes in caches
|
||||
*
|
||||
* @package Friendica\Core\Cache
|
||||
*/
|
||||
|
@ -22,7 +22,7 @@ trait TraitCompareSet
|
|||
abstract public function add($key, $value, $ttl = Cache::FIVE_MINUTES);
|
||||
|
||||
/**
|
||||
* @brief NonNative - Compares if the old value is set and sets the new value
|
||||
* NonNative - Compares if the old value is set and sets the new value
|
||||
*
|
||||
* @param string $key The cache key
|
||||
* @param mixed $oldValue The old value we know from the cache
|
||||
|
@ -45,4 +45,4 @@ trait TraitCompareSet
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue