MediaWiki  1.28.0
MWMemcached Class Reference
Inheritance diagram for MWMemcached:
Collaboration diagram for MWMemcached:

Additional Inherited Members

- Public Member Functions inherited from MemcachedClient
 __construct ($args)
 Memcache initializer. More...
 
 _close_sock ($sock)
 Close the specified socket. More...
 
 _connect_sock (&$sock, $host)
 Connects $sock to $host, timing out after $timeout. More...
 
 _dead_host ($host)
 
 _dead_sock ($sock)
 Marks a host as dead until 30-40 seconds in the future. More...
 
 _debugprint ($text)
 
 _error_log ($text)
 
 _fgets ($sock)
 Read a line from a stream. More...
 
 _flush_read_buffer ($f)
 Flush the read buffer of a stream. More...
 
 _fread ($sock, $len)
 Read the specified number of bytes from a stream. More...
 
 _fwrite ($sock, $buf)
 Write to a stream. More...
 
 _handle_error ($sock, $msg)
 Handle an I/O error. More...
 
 _hashfunc ($key)
 Creates a hash integer based on the $key. More...
 
 _incrdecr ($cmd, $key, $amt=1)
 Perform increment/decriment on $key. More...
 
 _load_items ($sock, &$ret, &$casToken=null)
 Load items into $ret from $sock. More...
 
 _set ($cmd, $key, $val, $exp, $casToken=null)
 Performs the requested storage operation to the memcache server. More...
 
 add ($key, $val, $exp=0)
 Adds a key/value to the memcache server if one isn't already set with that key. More...
 
 cas ($casToken, $key, $value, $exp=0)
 Sets a key to a given value in the memcache if the current value still corresponds to a known, given value. More...
 
 decr ($key, $amt=1)
 Decrease a value stored on the memcache server. More...
 
 delete ($key, $time=0)
 Deletes a key from the server, optionally after $time. More...
 
 disconnect_all ()
 Disconnects all connected sockets. More...
 
 enable_compress ($enable)
 Enable / Disable compression. More...
 
 forget_dead_hosts ()
 Forget about all of the dead hosts. More...
 
 get ($key, &$casToken=null)
 Retrieves the value associated with the key from the memcache server. More...
 
 get_multi ($keys)
 Get multiple keys from the server(s) More...
 
 get_sock ($key)
 get_sock More...
 
 incr ($key, $amt=1)
 Increments $key (optionally) by $amt. More...
 
 lock ($key, $timeout=0)
 
 replace ($key, $value, $exp=0)
 Overwrites an existing value for key; only works if key is already set. More...
 
 run_command ($sock, $cmd)
 Passes through $cmd to the memcache server connected by $sock; returns output as an array (null array if no output) More...
 
 set ($key, $value, $exp=0)
 Unconditionally sets a key to a given value in the memcache. More...
 
 set_compress_threshold ($thresh)
 Set the compression threshold. More...
 
 set_debug ($dbg)
 Set the debug flag. More...
 
 set_servers ($list)
 Set the server list to distribute key gets and puts between. More...
 
 set_timeout ($seconds, $microseconds)
 Sets the timeout for new connections. More...
 
 sock_to_host ($host)
 Returns the socket for the host. More...
 
 touch ($key, $time=0)
 Changes the TTL on a key from the server to $time. More...
 
 unlock ($key)
 
- Public Attributes inherited from MemcachedClient
int $_active
 

of total servers we have

More...
 
int $_bucketcount
 Total # of bit buckets we have. More...
 
array $_buckets
 Our bit buckets. More...
 
array $_cache_sock
 Cached Sockets that are connected. More...
 
bool $_compress_enable
 Do we want to use compression? More...
 
int $_compress_threshold
 At how many bytes should we compress? More...
 
 $_connect_attempts
 Number of connection attempts for each server. More...
 
 $_connect_timeout
 Connect timeout in seconds. More...
 
bool $_debug
 Current debug status; 0 - none to 9 - profiling. More...
 
bool $_have_zlib
 Is compression available? More...
 
array $_host_dead
 Dead hosts, assoc array, 'host'=>'unixtime when ok to check again'. More...
 
bool $_persistent
 Are we using persistent links? More...
 
array $_servers
 Array containing ip:port or array(ip:port, weight) More...
 
string $_single_sock
 If only using one server; contains ip:port to connect to. More...
 
int $_timeout_microseconds
 Stream timeout in microseconds. More...
 
int $_timeout_seconds
 Stream timeout in seconds. More...
 
array $stats
 Command statistics. More...
 
const COMPRESSED = 2
 Flag: indicates data is compressed. More...
 
const COMPRESSION_SAVINGS = 0.20
 Minimum savings to store data compressed. More...
 
const INTVAL = 4
 Flag: indicates data is an integer. More...
 
const SERIALIZED = 1
 Flag: indicates data is serialized. More...
 

Detailed Description

Deprecated:
since 1.27

Definition at line 27 of file MemcachedClientCompat.php.


The documentation for this class was generated from the following file: