1
0
Fork 0

Removed some leftovers

This commit is contained in:
Philipp Holzer 2019-08-04 15:58:53 +02:00
commit d2211bd6dd
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 7 additions and 6 deletions

View file

@ -19,7 +19,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 = ICache::FIVE_MINUTES);
public function add($key, $value, $ttl = Cache::FIVE_MINUTES);
/**
* Compares if the old value is set and sets the new value
@ -31,7 +31,7 @@ interface IMemoryCache extends ICache
*
* @return bool
*/
public function compareSet($key, $oldValue, $newValue, $ttl = ICache::FIVE_MINUTES);
public function compareSet($key, $oldValue, $newValue, $ttl = Cache::FIVE_MINUTES);
/**
* Compares if the old value is set and removes it

View file

@ -8,7 +8,7 @@
namespace Friendica\Core;
use Friendica\BaseObject;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Lock\ILock;
/**
@ -26,7 +26,7 @@ class Lock extends BaseObject
* @return boolean Was the lock successful?
* @throws \Exception
*/
public static function acquire($key, $timeout = 120, $ttl = ICache::FIVE_MINUTES)
public static function acquire($key, $timeout = 120, $ttl = Cache::FIVE_MINUTES)
{
return self::getClass(ILock::class)->acquireLock($key, $timeout, $ttl);
}

View file

@ -30,7 +30,7 @@ interface ILock
*
* @return boolean Was the lock successful?
*/
public function acquireLock($key, $timeout = 120, $ttl = Cache\ICache::FIVE_MINUTES);
public function acquireLock($key, $timeout = 120, $ttl = Cache\Cache::FIVE_MINUTES);
/**
* Releases a lock if it was set by us