MediaWiki master
CacheDependency Class Reference

Base class to represent dependencies for LocalisationCache entries. More...

Inherited by ConstantDependency, FileDependency, GlobalDependency, and MainConfigDependency.

Public Member Functions

 isExpired ()
 Returns true if the dependency is expired, false otherwise.
 
 loadDependencyValues ()
 Hook to perform any expensive pre-serialize loading of dependency values.
 

Detailed Description

Base class to represent dependencies for LocalisationCache entries.

Stability: stable
to extend

Definition at line 27 of file CacheDependency.php.

Member Function Documentation

◆ isExpired()

CacheDependency::isExpired ( )
abstract

Returns true if the dependency is expired, false otherwise.

Returns
bool

Reimplemented in ConstantDependency, FileDependency, GlobalDependency, and MainConfigDependency.

Referenced by LocalisationCache\isExpired().

◆ loadDependencyValues()

CacheDependency::loadDependencyValues ( )

Hook to perform any expensive pre-serialize loading of dependency values.

Stability: stable
to override

Reimplemented in FileDependency.

Definition at line 39 of file CacheDependency.php.


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