ArrayCache

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

Properties

protected static property OC\Memcache\ArrayCache::$cachedData
Source:lib/private/Memcache/ArrayCache.php#32
Type:array Array with the cached data

Methods

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

lib/private/Memcache/ArrayCache.php#94

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

bool

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

lib/private/Memcache/ArrayCache.php#110

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

int | bool

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

lib/private/Memcache/ArrayCache.php#128

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

int | bool

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

lib/private/Memcache/ArrayCache.php#146

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

bool

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