Factory

class OC\Memcache\Factory
Source:lib/private/Memcache/Factory.php#39
Implements:OCP\ICacheFactory

Constants

NULL_CACHE = \OC\Memcache\NullCache::class
Source:lib/private/Memcache/Factory.php#40

Properties

Methods

public OC\Memcache\Factory::__construct($globalPrefix, $logger, $localCacheClass=null, $distributedCacheClass=null, $lockingCacheClass=null)
Source:

lib/private/Memcache/Factory.php#74

Parameters:
  • $globalPrefix (string)
  • $logger (OCP\ILogger)
  • $localCacheClass (string | null)
  • $distributedCacheClass (string | null)
  • $lockingCacheClass (string | null)
public OC\Memcache\Factory::createLocking($prefix="")
create a cache instance for storing locks
Source:

lib/private/Memcache/Factory.php#134

Parameters:
  • $prefix (string)
Returns:

\OCP\IMemcache

public OC\Memcache\Factory::createDistributed($prefix="")
create a distributed cache instance
Source:

lib/private/Memcache/Factory.php#144

Parameters:
  • $prefix (string)
Returns:

\OCP\ICache

public OC\Memcache\Factory::createLocal($prefix="")
create a local cache instance
Source:

lib/private/Memcache/Factory.php#154

Parameters:
  • $prefix (string)
Returns:

\OCP\ICache

public OC\Memcache\Factory::isAvailable()
check memcache availability
Source:lib/private/Memcache/Factory.php#163
Returns:bool
public OC\Memcache\Factory::createLowLatency($prefix="")
Source:

lib/private/Memcache/Factory.php#172

Parameters:
  • $prefix (string)
See:

\OC\Memcache\Factory::createLocal()

Returns:

\OCP\ICache

public OC\Memcache\Factory::isLocalCacheAvailable()
Check if a local memory cache backend is available
Source:lib/private/Memcache/Factory.php#181
Returns:bool