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

Represents a single result from the persistent cache. More...

Public Member Functions

 __construct (string $key, $value=null, ?int $exptime=null, ?string $tag=null)
 
 key ()
 
 value ()
 
 exptime ()
 
 tag ()
 
 hasExpired ()
 

Detailed Description

Represents a single result from the persistent cache.

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

Definition at line 15 of file PersistentCacheEntry.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::__construct ( string $key,
$value = null,
?int $exptime = null,
?string $tag = null )
Parameters
string$key
mixed | null$value
int | null$exptime
string | null$tag

Definition at line 31 of file PersistentCacheEntry.php.

Member Function Documentation

◆ exptime()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::exptime ( )

Definition at line 64 of file PersistentCacheEntry.php.

◆ hasExpired()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::hasExpired ( )

Definition at line 72 of file PersistentCacheEntry.php.

◆ key()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::key ( )

Definition at line 55 of file PersistentCacheEntry.php.

◆ tag()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::tag ( )

Definition at line 68 of file PersistentCacheEntry.php.

◆ value()

MediaWiki\Extension\Translate\Cache\PersistentCacheEntry::value ( )
Returns
mixed

Definition at line 60 of file PersistentCacheEntry.php.


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