Public Member Functions | |
& | getLoadBalancer ($cluster) |
& | getSlave ($cluster) |
& | getMaster ($cluster) |
getTable (&$db) | |
fetchFromURL ($url) | |
Fetch data from given URL. | |
& | fetchBlob ($cluster, $id, $itemID) |
Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression. | |
store ($cluster, $data) | |
Insert a data item into a given cluster. |
Definition at line 27 of file ExternalStoreDB.php.
& ExternalStoreDB::fetchBlob | ( | $ | cluster, | |
$ | id, | |||
$ | itemID | |||
) |
Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression.
$cluster | ||
$id | ||
$itemID |
Definition at line 87 of file ExternalStoreDB.php.
References $dbr, $dbw, $wgExternalBlobCache, getMaster(), getSlave(), getTable(), wfDebug(), and wfDebugLog().
Referenced by fetchFromURL().
ExternalStoreDB::fetchFromURL | ( | $ | url | ) |
Fetch data from given URL.
string | $url An url of the form DB://cluster/id or DB://cluster/id/itemid for concatened storage. |
Definition at line 59 of file ExternalStoreDB.php.
References $path, $url, and fetchBlob().
& ExternalStoreDB::getLoadBalancer | ( | $ | cluster | ) |
Definition at line 30 of file ExternalStoreDB.php.
References wfGetLBFactory().
Referenced by getMaster(), and getSlave().
& ExternalStoreDB::getMaster | ( | $ | cluster | ) |
Definition at line 41 of file ExternalStoreDB.php.
References $lb, and getLoadBalancer().
Referenced by fetchBlob(), and store().
& ExternalStoreDB::getSlave | ( | $ | cluster | ) |
Definition at line 35 of file ExternalStoreDB.php.
References $lb, and getLoadBalancer().
Referenced by fetchBlob().
ExternalStoreDB::getTable | ( | &$ | db | ) |
Definition at line 47 of file ExternalStoreDB.php.
References $db.
Referenced by fetchBlob(), and store().
ExternalStoreDB::store | ( | $ | cluster, | |
$ | data | |||
) |
Insert a data item into a given cluster.
$cluster | String: the cluster name | |
$data | String: the data item |
Definition at line 124 of file ExternalStoreDB.php.
References $dbw, getMaster(), and getTable().