MemcacheLockingProvider¶
-
class
OC\Lock\
MemcacheLockingProvider
¶ Source: lib/private/Lock/MemcacheLockingProvider.php#35 Parent: OC\Lock\AbstractLockingProvider
Properties¶
Methods¶
-
public
OC\Lock\MemcacheLockingProvider::
__construct
($memcache, $ttl=3600)¶ Source: Parameters: - $memcache (
OCP\IMemcache
) - $ttl (int)
- $memcache (
-
public
OC\Lock\MemcacheLockingProvider::
isLocked
($path, $type)¶ Source: Parameters: - $path (string)
- $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Returns: bool
-
public
OC\Lock\MemcacheLockingProvider::
acquireLock
($path, $type, $readablePath=null)¶ Source: Parameters: - $path (string)
- $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
- $readablePath (string) human readable path to use in error messages
Throws:
-
public
OC\Lock\MemcacheLockingProvider::
releaseLock
($path, $type)¶ Source: Parameters: - $path (string)
- $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
-
public
OC\Lock\MemcacheLockingProvider::
changeLock
($path, $targetType)¶ - Change the type of an existing lock
Source: Parameters: - $path (string)
- $targetType (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Throws: