Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache Class Reference

A persistent cache implementation using the database. More...

Inheritance diagram for MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache:
MediaWiki\Extension\Translate\Cache\PersistentCache

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 ()
 

Detailed Description

A persistent cache implementation using the database.

Author
Abijeet Patro @license GPL-2.0-or-later
Since
2020.12

Definition at line 17 of file PersistentDatabaseCache.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::__construct ( ILoadBalancer $loadBalancer,
JsonCodec $jsonCodec )

Definition at line 25 of file PersistentDatabaseCache.php.

Member Function Documentation

◆ clear()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::clear ( )

◆ delete()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::delete ( string ... $keynames)

◆ deleteEntriesWithTag()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::deleteEntriesWithTag ( string $tag)

◆ get()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::get ( string ... $keynames)
Returns
PersistentCacheEntry[]

Implements MediaWiki\Extension\Translate\Cache\PersistentCache.

Definition at line 31 of file PersistentDatabaseCache.php.

◆ getByTag()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::getByTag ( string $tag)
Returns
PersistentCacheEntry[]

Implements MediaWiki\Extension\Translate\Cache\PersistentCache.

Definition at line 61 of file PersistentDatabaseCache.php.

◆ getWithLock()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::getWithLock ( string $keyname)

◆ has()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::has ( string $keyname)

◆ hasEntryWithTag()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::hasEntryWithTag ( string $tag)

◆ hasExpiredEntry()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::hasExpiredEntry ( string $keyname)

◆ set()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::set ( PersistentCacheEntry ... $entries)

◆ setExpiry()

MediaWiki\Extension\Translate\Cache\PersistentDatabaseCache::setExpiry ( string $keyname,
int $expiryTime )

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