MediaWiki  REL1_22
MemcachedPhpBagOStuff Class Reference

A wrapper class for the pure-PHP memcached client, exposing a BagOStuff interface. More...

Inheritance diagram for MemcachedPhpBagOStuff:
Collaboration diagram for MemcachedPhpBagOStuff:

List of all members.

Public Member Functions

 __construct ($params)
 Constructor.
 decr ($key, $value=1)
 getMulti (array $keys)
 incr ($key, $value=1)
 lock ($key, $timeout=0)
 setDebug ($debug)
 unlock ($key)

Detailed Description

A wrapper class for the pure-PHP memcached client, exposing a BagOStuff interface.

Definition at line 29 of file MemcachedPhpBagOStuff.php.


Constructor & Destructor Documentation

Constructor.

Available parameters are:

  • servers: The list of IP:port combinations holding the memcached servers.
  • debug: Whether to set the debug flag in the underlying client.
  • persistent: Whether to use a persistent connection
  • compress_threshold: The minimum size an object must be before it is compressed
  • timeout: The read timeout in microseconds
  • connect_timeout: The connect timeout in seconds
Parameters:
$paramsarray

Definition at line 44 of file MemcachedPhpBagOStuff.php.

References $params, and MemcachedBagOStuff\applyDefaultParams().


Member Function Documentation

MemcachedPhpBagOStuff::decr ( key,
value = 1 
)
Parameters:
$keystring
$valueint
Returns:
Mixed

Reimplemented from BagOStuff.

Definition at line 99 of file MemcachedPhpBagOStuff.php.

References $key, $value, and MemcachedBagOStuff\encodeKey().

Parameters:
$keysArray
Returns:
Array

Reimplemented from BagOStuff.

Definition at line 63 of file MemcachedPhpBagOStuff.php.

References array().

MemcachedPhpBagOStuff::incr ( key,
value = 1 
)
Parameters:
$keystring
$valueint
Returns:
Mixed

Reimplemented from BagOStuff.

Definition at line 90 of file MemcachedPhpBagOStuff.php.

References $key, $value, and MemcachedBagOStuff\encodeKey().

MemcachedPhpBagOStuff::lock ( key,
timeout = 0 
)
Parameters:
$key
$timeoutint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 73 of file MemcachedPhpBagOStuff.php.

References $key, and MemcachedBagOStuff\encodeKey().

Parameters:
$debugbool

Reimplemented from BagOStuff.

Definition at line 55 of file MemcachedPhpBagOStuff.php.

References $debug.

Parameters:
$keystring
Returns:
Mixed

Reimplemented from BagOStuff.

Definition at line 81 of file MemcachedPhpBagOStuff.php.

References $key, and MemcachedBagOStuff\encodeKey().


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