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:

lib/private/Lock/MemcacheLockingProvider.php#45

Parameters:
public OC\Lock\MemcacheLockingProvider::isLocked($path, $type)
Source:

lib/private/Lock/MemcacheLockingProvider.php#61

Parameters:
  • $path (string)
  • $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Returns:

bool

public OC\Lock\MemcacheLockingProvider::acquireLock($path, $type, $readablePath=null)
Source:

lib/private/Lock/MemcacheLockingProvider.php#78

Parameters:
  • $path (string)
  • $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
  • $readablePath (string) human readable path to use in error messages
Throws:

\OCP\Lock\LockedException

public OC\Lock\MemcacheLockingProvider::releaseLock($path, $type)
Source:

lib/private/Lock/MemcacheLockingProvider.php#97

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:

lib/private/Lock/MemcacheLockingProvider.php#131

Parameters:
  • $path (string)
  • $targetType (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Throws:

\OCP\Lock\LockedException