MediaWiki master
MediaWiki\Language\LCStoreNull Class Reference

Null store backend, used to avoid DB errors during MediaWiki installation. More...

Inherits MediaWiki\Language\LCStore.

Collaboration diagram for MediaWiki\Language\LCStoreNull:

Public Member Functions

 finishWrite ()
 Finish a cache write transaction.
 get ( $code, $key)
 Get a value.
Parameters
string$codeLanguage code
string$keyCache key

 lateFallback ()
 Can this cache type delay fallback lookups to read time?Returning true will cause the fallbacks to be skipped when recaching data, and instead performed via multiple reads if necessary at runtime.This is best when performing lookups is extremely low-cost, such as LCStoreStaticArray with the lateFallback option.When reading from disk or network, trading off the space for fewer lookups may still be a win. Returning false will keep the classic behavior of pre-filling all the fallback chains for each language.
 set ( $key, $value)
 Set a key to a given value.startWrite() must be called before this is called, and finishWrite() must be called after.
Parameters
string$key
mixed$value

 startWrite ( $code)
 Start a cache write transaction.
Parameters
string$codeLanguage code

Public Member Functions inherited from MediaWiki\Language\LCStore
 setMessages (array $messages)
 Set all messages at once.

Detailed Description

Null store backend, used to avoid DB errors during MediaWiki installation.

Definition at line 14 of file LCStoreNull.php.

Member Function Documentation

◆ finishWrite()

MediaWiki\Language\LCStoreNull::finishWrite ( )

Finish a cache write transaction.

Reimplemented from MediaWiki\Language\LCStore.

Definition at line 25 of file LCStoreNull.php.

◆ get()

MediaWiki\Language\LCStoreNull::get ( $code,
$key )

Get a value.

Parameters
string$codeLanguage code
string$keyCache key

Reimplemented from MediaWiki\Language\LCStore.

Definition at line 17 of file LCStoreNull.php.

◆ lateFallback()

MediaWiki\Language\LCStoreNull::lateFallback ( )

Can this cache type delay fallback lookups to read time?Returning true will cause the fallbacks to be skipped when recaching data, and instead performed via multiple reads if necessary at runtime.This is best when performing lookups is extremely low-cost, such as LCStoreStaticArray with the lateFallback option.When reading from disk or network, trading off the space for fewer lookups may still be a win. Returning false will keep the classic behavior of pre-filling all the fallback chains for each language.

Reimplemented from MediaWiki\Language\LCStore.

Definition at line 33 of file LCStoreNull.php.

References return.

◆ set()

MediaWiki\Language\LCStoreNull::set ( $key,
$value )

Set a key to a given value.startWrite() must be called before this is called, and finishWrite() must be called after.

Parameters
string$key
mixed$value

Reimplemented from MediaWiki\Language\LCStore.

Definition at line 29 of file LCStoreNull.php.

◆ startWrite()

MediaWiki\Language\LCStoreNull::startWrite ( $code)

Start a cache write transaction.

Parameters
string$codeLanguage code

Reimplemented from MediaWiki\Language\LCStore.

Definition at line 22 of file LCStoreNull.php.


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