Redis¶
-
class
OC\Memcache\
Redis
¶ Source: lib/private/Memcache/Redis.php#34 Parent: OC\Memcache\Cache
Implements: OCP\IMemcacheTTL
Properties¶
Methods¶
-
public
OC\Memcache\Redis::
__construct
($prefix="")¶ Source: lib/private/Memcache/Redis.php#40
-
protected
OC\Memcache\Redis::
getNameSpace
()¶ - entries in redis get namespaced to prevent collisions between ownCloud instances and users
Source: lib/private/Memcache/Redis.php#50
-
public
OC\Memcache\Redis::
get
($key)¶ Source: lib/private/Memcache/Redis.php#54
-
public
OC\Memcache\Redis::
set
($key, $value, $ttl=0)¶ Source: lib/private/Memcache/Redis.php#63
-
public
OC\Memcache\Redis::
hasKey
($key)¶ Source: lib/private/Memcache/Redis.php#71
-
public
OC\Memcache\Redis::
remove
($key)¶ Source: lib/private/Memcache/Redis.php#75
-
public
OC\Memcache\Redis::
clear
($prefix="")¶ Source: lib/private/Memcache/Redis.php#83
-
public
OC\Memcache\Redis::
add
($key, $value, $ttl=0)¶ - Set a value in the cache if it’s not already stored
Source: Parameters: - $key (string)
- $value (mixed)
- $ttl (int) Time To Live in seconds. Defaults to 60*60*24
Returns: bool
-
public
OC\Memcache\Redis::
inc
($key, $step=1)¶ - Increase a stored number
Source: Parameters: - $key (string)
- $step (int)
Returns: int | bool
-
public
OC\Memcache\Redis::
dec
($key, $step=1)¶ - Decrease a stored number
Source: Parameters: - $key (string)
- $step (int)
Returns: int | bool
-
public
OC\Memcache\Redis::
cas
($key, $old, $new)¶ - Compare and set
Source: Parameters: - $key (string)
- $old (mixed)
- $new (mixed)
Returns: bool
-
public
OC\Memcache\Redis::
cad
($key, $old)¶ - Compare and delete
Source: Parameters: - $key (string)
- $old (mixed)
Returns: bool
-
public
OC\Memcache\Redis::
setTTL
($key, $ttl)¶ Source: lib/private/Memcache/Redis.php#180
-
public static
OC\Memcache\Redis::
isAvailable
()¶ Source: lib/private/Memcache/Redis.php#184