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: 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: Parameters: - $prefix (string)
Returns:
-
public
OC\Memcache\Factory::
createDistributed
($prefix="")¶ - create a distributed cache instance
Source: Parameters: - $prefix (string)
Returns:
-
public
OC\Memcache\Factory::
createLocal
($prefix="")¶ - create a local cache instance
Source: Parameters: - $prefix (string)
Returns:
-
public
OC\Memcache\Factory::
isAvailable
()¶ - check memcache availability
Source: lib/private/Memcache/Factory.php#163 Returns: bool
-
public
OC\Memcache\Factory::
createLowLatency
($prefix="")¶ Source: Parameters: - $prefix (string)
See: Returns:
-
public
OC\Memcache\Factory::
isLocalCacheAvailable
()¶ - Check if a local memory cache backend is available
Source: lib/private/Memcache/Factory.php#181 Returns: bool