A persistent cache implementation using the database. More...
Public Member Functions | |
__construct (ILoadBalancer $loadBalancer, JsonCodec $jsonCodec) | |
get (string ... $keynames) | |
getWithLock (string $keyname) | |
getByTag (string $tag) | |
has (string $keyname) | |
hasEntryWithTag (string $tag) | |
hasExpiredEntry (string $keyname) | |
set (PersistentCacheEntry ... $entries) | |
setExpiry (string $keyname, int $expiryTime) | |
delete (string ... $keynames) | |
deleteEntriesWithTag (string $tag) | |
clear () | |
A persistent cache implementation using the database.
Definition at line 17 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::__construct | ( | ILoadBalancer | $loadBalancer, |
JsonCodec | $jsonCodec ) |
Definition at line 25 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::clear | ( | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 171 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::delete | ( | string ... | $keynames | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 153 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::deleteEntriesWithTag | ( | string | $tag | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 162 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::get | ( | string ... | $keynames | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 31 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::getByTag | ( | string | $tag | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 61 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::getWithLock | ( | string | $keyname | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 43 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::has | ( | string | $keyname | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 73 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::hasEntryWithTag | ( | string | $tag | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 85 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::hasExpiredEntry | ( | string | $keyname | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 97 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::set | ( | PersistentCacheEntry ... | $entries | ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 115 of file PersistentDatabaseCache.php.
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::setExpiry | ( | string | $keyname, |
int | $expiryTime ) |
Implements MediaWiki\Extension\Translate\Cache\PersistentCache.
Definition at line 143 of file PersistentDatabaseCache.php.