Public Member Functions | |
memcached ($args) | |
add ($key, $val, $exp=0) | |
decr ($key, $amt=1) | |
delete ($key, $time=0) | |
disconnect_all () | |
enable_compress ($enable) | |
forget_dead_hosts () | |
get ($key) | |
get_multi ($keys) | |
incr ($key, $amt=1) | |
replace ($key, $value, $exp=0) | |
run_command ($sock, $cmd) | |
set ($key, $value, $exp=0) | |
set_compress_threshold ($thresh) | |
set_debug ($dbg) | |
set_servers ($list) | |
_close_sock ($sock) | |
_connect_sock (&$sock, $host, $timeout=0.25) | |
_dead_sock ($sock) | |
get_sock ($key) | |
_hashfunc ($key) | |
_incrdecr ($cmd, $key, $amt=1) | |
_load_items ($sock, &$ret) | |
_set ($cmd, $key, $val, $exp) | |
sock_to_host ($host) | |
_debugprint ($str) | |
Public Attributes | |
$stats | |
$_cache_sock | |
$_debug | |
$_host_dead | |
$_have_zlib | |
$_compress_enable | |
$_compress_threshold | |
$_persistant | |
$_single_sock | |
$_servers | |
$_buckets | |
$_bucketcount | |
$_active |
|
Memcache initializer
Definition at line 222 of file memcached-client.php. References $args, and set_servers(). |
|
Close the specified socket
Definition at line 621 of file memcached-client.php. References _close_sock(). Referenced by _close_sock(). |
|
Connects $sock to $host, timing out after $timeout
Definition at line 641 of file memcached-client.php. References $sock, and _connect_sock(). Referenced by _connect_sock(). |
|
Marks a host as dead until 30-40 seconds in the future
Definition at line 667 of file memcached-client.php. References _dead_sock(). Referenced by _dead_sock(), delete(), get(), and get_multi(). |
|
Definition at line 941 of file memcached-client.php. References _debugprint(). Referenced by _debugprint(), _load_items(), _set(), delete(), get(), and get_multi(). |
|
Creates a hash interger based on the $key
Definition at line 738 of file memcached-client.php. References _hashfunc(). Referenced by _hashfunc(), and get_sock(). |
|
Perform increment/decriment on $key
Definition at line 756 of file memcached-client.php. References $line, $sock, and _incrdecr(). Referenced by _incrdecr(), decr(), and incr(). |
|
Load items into $ret from $sock
Definition at line 788 of file memcached-client.php. References $n, _debugprint(), _load_items(), data, MEMCACHE_COMPRESSED, MEMCACHE_SERIALIZED, and n. Referenced by _load_items(), get(), and get_multi(). |
|
Performs the requested storage operation to the memcache server
Definition at line 854 of file memcached-client.php. References $line, $sock, _debugprint(), _set(), data, MEMCACHE_COMPRESSED, and MEMCACHE_SERIALIZED. |
|
Adds a key/value to the memcache server if one isn't already set with that key
Definition at line 250 of file memcached-client.php. Referenced by add(). |
|
Decriment a value stored on the memcache server
Definition at line 267 of file memcached-client.php. References _incrdecr(), and decr(). Referenced by decr(). |
|
Deletes a key from the server, optionally after $time
Definition at line 284 of file memcached-client.php. References $res, $sock, _dead_sock(), _debugprint(), and get_sock(). |
|
Disconnects all connected sockets public Definition at line 320 of file memcached-client.php. |
|
Enable / Disable compression
Definition at line 338 of file memcached-client.php. References enable_compress(). Referenced by enable_compress(). |
|
Forget about all of the dead hosts public Definition at line 351 of file memcached-client.php. |
|
Retrieves the value associated with the key from the memcache server
Definition at line 367 of file memcached-client.php. References $sock, _dead_sock(), _debugprint(), _load_items(), get(), and get_sock(). Referenced by get(). |
|
Get multiple keys from the server(s)
Definition at line 407 of file memcached-client.php. References $sock, _dead_sock(), _debugprint(), _load_items(), get_multi(), and get_sock(). Referenced by get_multi(). |
|
get_sock
Definition at line 687 of file memcached-client.php. References $i, $sock, _hashfunc(), get_sock(), and sock_to_host(). Referenced by delete(), get(), get_multi(), and get_sock(). |
|
Increments $key (optionally) by $amt
Definition at line 472 of file memcached-client.php. References _incrdecr(), and incr(). Referenced by incr(). |
|
Overwrites an existing value for key; only works if key is already set
Definition at line 490 of file memcached-client.php. References _set(), and replace(). Referenced by replace(). |
|
Passes through $cmd to the memcache server connected by $sock; returns output as an array (null array if no output)
NOTE: due to a possible bug in how PHP reads while using fgets(), each line may not be terminated by a
Definition at line 514 of file memcached-client.php. References $res, and run_command(). Referenced by run_command(). |
|
Unconditionally sets a key to a given value in the memcache. Returns true if set successfully.
Definition at line 548 of file memcached-client.php. Referenced by set(). |
|
Sets the compression threshold
Definition at line 563 of file memcached-client.php. References set_compress_threshold(). Referenced by set_compress_threshold(). |
|
Sets the debug flag
Definition at line 580 of file memcached-client.php. References set_debug(). Referenced by set_debug(). |
|
Sets the server list to distribute key gets and puts between
Definition at line 597 of file memcached-client.php. References $list, and set_servers(). Referenced by memcached(), and set_servers(). |
|
Returns the socket for the host
Definition at line 919 of file memcached-client.php. References $sock, and sock_to_host(). Referenced by get_sock(), and sock_to_host(). |
|
Definition at line 206 of file memcached-client.php. |
|
Definition at line 198 of file memcached-client.php. |
|
Definition at line 190 of file memcached-client.php. |
|
Definition at line 118 of file memcached-client.php. |
|
Definition at line 150 of file memcached-client.php. |
|
Definition at line 158 of file memcached-client.php. |
|
Definition at line 126 of file memcached-client.php. |
|
Definition at line 142 of file memcached-client.php. |
|
Definition at line 134 of file memcached-client.php. |
|
Definition at line 166 of file memcached-client.php. |
|
Definition at line 182 of file memcached-client.php. |
|
Definition at line 174 of file memcached-client.php. |
|
Definition at line 107 of file memcached-client.php. |