Memcached

class OC\Memcache\Memcached
Source:lib/private/Memcache/Memcached.php#38
Parent:OC\Memcache\Cache
Implements:OCP\IMemcache
Used traits:OC\Memcache\CASTrait OC\Memcache\CADTrait

Properties

Methods

public OC\Memcache\Memcached::__construct($prefix="")
Source:lib/private/Memcache/Memcached.php#48
protected OC\Memcache\Memcached::getNameSpace()
entries in XCache gets namespaced to prevent collisions between owncloud instances and users
Source:lib/private/Memcache/Memcached.php#98
public OC\Memcache\Memcached::get($key)
Source:lib/private/Memcache/Memcached.php#102
public OC\Memcache\Memcached::set($key, $value, $ttl=0)
Source:lib/private/Memcache/Memcached.php#111
public OC\Memcache\Memcached::hasKey($key)
Source:lib/private/Memcache/Memcached.php#123
public OC\Memcache\Memcached::remove($key)
Source:lib/private/Memcache/Memcached.php#128
public OC\Memcache\Memcached::clear($prefix="")
Source:lib/private/Memcache/Memcached.php#136
public OC\Memcache\Memcached::add($key, $value, $ttl=0)
Set a value in the cache if it’s not already stored
Source:

lib/private/Memcache/Memcached.php#170

Parameters:
  • $key (string)
  • $value (mixed)
  • $ttl (int) Time To Live in seconds. Defaults to 60*60*24
Returns:

bool

Throws:

\Exception

public OC\Memcache\Memcached::inc($key, $step=1)
Increase a stored number
Source:

lib/private/Memcache/Memcached.php#185

Parameters:
  • $key (string)
  • $step (int)
Returns:

int | bool

public OC\Memcache\Memcached::dec($key, $step=1)
Decrease a stored number
Source:

lib/private/Memcache/Memcached.php#203

Parameters:
  • $key (string)
  • $step (int)
Returns:

int | bool

public static OC\Memcache\Memcached::isAvailable()
Source:lib/private/Memcache/Memcached.php#213