Property | Type | Description | |
---|---|---|---|
$_locks | array | Locked keys. | |
$_logger | Horde_Log_Logger | Logger instance. | |
$_memcache | Memcache | Memcache object. | |
$_noexist | array | A list of items known not to exist. | |
$_params | array | Memcache defaults. | |
$_servers | array | The list of active servers. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
_init ( ) | Do initialization. | |
delete ( string $key, integer $timeout ) : boolean | Delete a key. | |
failover ( string $host, integer $port ) | Failover method. | |
flush ( ) | Mark all entries on a memcache installation as expired. | |
get ( mixed $keys ) : mixed | Get data associated with a key. | |
lock ( string $key ) | Obtain lock on a key. | |
replace ( string $key, string $var, $expire ) : boolean | Replace the value of a key. | |
serialize ( ) : string | Serialize. | |
set ( string $key, string $var, $expire ) : boolean | Set the value of a key. | |
shutdown ( ) | Shutdown function. | |
stats ( ) : array | Get the statistics output from the current memcache pool. | |
unlock ( string $key ) | Release lock on a key. | |
unserialize ( string $data ) | Unserialize. |
Method | Description | |
---|---|---|
_getFlags ( integer $count ) : integer | Get flags for memcache call. | |
_getOSKeyArray ( $key, $length ) : array | Returns the key listing of all key IDs for an oversized item. | |
_key ( string $key ) : string | Obtains the md5 sum for a key. | |
_lockAdd ( string $key ) | Small wrapper around Memcache[d]#add(). | |
_set ( string $key, string $var, $expire, $len = null ) : boolean | Set the value of a key. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters: - compression: (boolean) Compress data inside memcache? DEFAULT: false - c_threshold: (integer) The minimum value length before attempting to compress. DEFAULT: none - hostspec: (array) The memcached host(s) to connect to. DEFAULT: 'localhost' - large_items: (boolean) Allow storing large data items (larger than Horde_Memcache::MAX_SIZE)? Currently not supported with memcached extension. DEFAULT: true - persistent: (boolean) Use persistent DB connections? DEFAULT: false - prefix: (string) The prefix to use for the memcache keys. DEFAULT: 'horde' - port: (array) The port(s) memcache is listening on. Leave empty if using UNIX sockets. DEFAULT: 11211 - weight: (array) The weight(s) to use for each memcached host. DEFAULT: none (equal weight to all servers) |
protected _getOSKeyArray ( $key, $length ) : array | ||
return | array | The array of key IDs. |
public unserialize ( string $data ) | ||
$data | string | Serialized data. |
protected Horde_Log_Logger $_logger | ||
return | Horde_Log_Logger |
protected array $_noexist | ||
return | array |