ICacheFactory

interface OCP\ICacheFactory
Interface ICacheFactory
Implemented by:OC\Memcache\Factory
Source:lib/public/ICacheFactory.php#36

Methods

public OCP\ICacheFactory::isAvailable()
Check if any memory cache backend is available
Source:lib/public/ICacheFactory.php#43
Returns:bool
Since:7.0.0
public OCP\ICacheFactory::isLocalCacheAvailable()
Check if a local memory cache backend is available
Source:lib/public/ICacheFactory.php#51
Returns:bool
Since:14.0.0
public OCP\ICacheFactory::createLocking($prefix="")
create a cache instance for storing locks
Source:

lib/public/ICacheFactory.php#60

Parameters:
  • $prefix (string)
Returns:

\OCP\IMemcache

Since:

13.0.0

public OCP\ICacheFactory::createDistributed($prefix="")
create a distributed cache instance
Source:

lib/public/ICacheFactory.php#69

Parameters:
  • $prefix (string)
Returns:

\OCP\ICache

Since:

13.0.0

public OCP\ICacheFactory::createLocal($prefix="")
create a local cache instance
Source:

lib/public/ICacheFactory.php#78

Parameters:
  • $prefix (string)
Returns:

\OCP\ICache

Since:

13.0.0