APCu

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

Methods

public OC\Memcache\APCu::get($key)
Source:lib/private/Memcache/APCu.php#41
public OC\Memcache\APCu::set($key, $value, $ttl=0)
Source:lib/private/Memcache/APCu.php#49
public OC\Memcache\APCu::hasKey($key)
Source:lib/private/Memcache/APCu.php#53
public OC\Memcache\APCu::remove($key)
Source:lib/private/Memcache/APCu.php#57
public OC\Memcache\APCu::clear($prefix="")
Source:lib/private/Memcache/APCu.php#61
public OC\Memcache\APCu::add($key, $value, $ttl=0)
Set a value in the cache if it’s not already stored
Source:

lib/private/Memcache/APCu.php#80

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

bool

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

lib/private/Memcache/APCu.php#91

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

int | bool

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

lib/private/Memcache/APCu.php#117

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

int | bool

public OC\Memcache\APCu::cas($key, $old, $new)
Compare and set
Source:

lib/private/Memcache/APCu.php#143

Parameters:
  • $key (string)
  • $old (mixed)
  • $new (mixed)
Returns:

bool

public static OC\Memcache\APCu::isAvailable()
Source:lib/private/Memcache/APCu.php#155
Returns:bool