MediaWiki  1.23.0
MediaWikiBagOStuff Class Reference

Backwards compatibility alias. More...

Inheritance diagram for MediaWikiBagOStuff:
Collaboration diagram for MediaWikiBagOStuff:

Additional Inherited Members

- Public Member Functions inherited from SqlBagOStuff
 __construct ( $params)
 Constructor. More...
 
 cas ( $casToken, $key, $value, $exptime=0)
 
 createTables ()
 Create shard tables. More...
 
 delete ( $key, $time=0)
 
 deleteAll ()
 
 deleteObjectsExpiringBefore ( $timestamp, $progressCallback=false)
 Delete objects from the database which expire before a certain date. More...
 
 expireAll ()
 
 get ( $key, &$casToken=null)
 
 getMulti (array $keys)
 
 incr ( $key, $step=1)
 
 set ( $key, $value, $exptime=0)
 
- Public Member Functions inherited from BagOStuff
 add ( $key, $value, $exptime=0)
 
 clearLastError ()
 Clear the "last error" registry. More...
 
 debug ( $text)
 
 decr ( $key, $value=1)
 Decrease stored value of $key by $value while preserving its TTL. More...
 
 getLastError ()
 Get the "last error" registered; clearLastError() should be called manually. More...
 
 lock ( $key, $timeout=6)
 
 merge ( $key, closure $callback, $exptime=0, $attempts=10)
 Merge changes into the existing cache value (possibly creating a new one). More...
 
 replace ( $key, $value, $exptime=0)
 
 setDebug ( $bool)
 
 unlock ( $key)
 
- Public Attributes inherited from SqlBagOStuff
 $conns
 
 $lastExpireAll = 0
 
LoadBalancer $lb
 
 $numServers
 
 $purgePeriod = 100
 
 $serverInfos
 
 $serverNames
 
 $shards = 1
 
 $tableName = 'objectcache'
 
- Public Attributes inherited from BagOStuff
const ERR_NO_RESPONSE = 1
 
const ERR_NONE = 0
 Possible values for getLastError() More...
 
const ERR_UNEXPECTED = 3
 
const ERR_UNREACHABLE = 2
 
- Protected Member Functions inherited from SqlBagOStuff
 garbageCollect ()
 
 getDB ( $serverIndex)
 Get a connection to the specified database. More...
 
 getMaxDateTime ( $db)
 
 getTableByKey ( $key)
 Get the server index and table name for a given key. More...
 
 getTableNameByShard ( $index)
 Get the table name for a given shard index. More...
 
 handleReadError (DBError $exception, $serverIndex)
 Handle a DBError which occurred during a read operation. More...
 
 handleWriteError (DBError $exception, $serverIndex)
 Handle a DBQueryError which occurred during a write operation. More...
 
 isExpired ( $db, $exptime)
 
 markServerDown ( $exception, $serverIndex)
 Mark a server down due to a DBConnectionError exception. More...
 
 serialize (&$data)
 Serialize an object and, if possible, compress the representation. More...
 
 unserialize ( $serial)
 Unserialize and, if necessary, decompress an object. More...
 
- Protected Member Functions inherited from BagOStuff
 convertExpiry ( $exptime)
 Convert an optionally relative time to an absolute time. More...
 
 convertToRelative ( $exptime)
 Convert an optionally absolute expiry time to a relative time. More...
 
 isInteger ( $value)
 Check if a value is an integer. More...
 
 mergeViaCas ( $key, closure $callback, $exptime=0, $attempts=10)
 
 mergeViaLock ( $key, closure $callback, $exptime=0, $attempts=10)
 
 setLastError ( $err)
 Set the "last error" registry. More...
 
- Protected Attributes inherited from SqlBagOStuff
 $connFailureErrors = array()
 
 $connFailureTimes = array()
 
- Protected Attributes inherited from BagOStuff
 $lastError = self::ERR_NONE
 

Detailed Description

Backwards compatibility alias.

Definition at line 702 of file SqlBagOStuff.php.


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