Method | Description | |
---|---|---|
__clone ( ) | Prevent users to clone the instance | |
addServers ( array $servers ) : boolean | ||
cleanP ( $base, $id ) | (non-PHPdoc) | |
clear ( ) | (non-PHPdoc) | |
delete ( |
(non-PHPdoc) | |
errorCallback ( ) | ||
get ( |
(non-PHPdoc) | |
getFetches ( ) | ||
hasMemcachedExt ( ) : boolean | Is memcached available in this system? | |
increment ( $value, |
(non-PHPdoc) | |
prefetch ( $data ) | (non-PHPdoc) | |
prefetchClear ( ) | Clear prefetched data. This is rarely useful. | |
prefetchKeys ( $keys ) | ||
report ( ) | (non-PHPdoc) | |
singleton ( $servers = [] ) : Cache | Cache constructor (this is a singleton). | |
store ( $data, |
(non-PHPdoc) |
Method | Description | |
---|---|---|
hashKey ( |
(non-PHPdoc) |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
getGroupString ( |
Converts cachekey to a string for the data group. |
public addServers ( array $servers ) : boolean | ||
$servers | array | Each entry in servers is supposed to be an array containing hostname, port, and, optionally, weight of the server. $servers = array( array('mem1.domain.com', 11211, 33), array('mem2.domain.com', 11211, 67) ); |
return | boolean |
public static hasMemcachedExt ( ) : boolean | ||
return | boolean |
public increment ( $value, |
||
$k |
public prefetchClear ( ) |
public static singleton ( $servers = [] ) : Cache | ||
return | Cache | The cache singleton. |
public store ( $data, |
||
$k |