MediaWiki  1.23.12
LCStoreAccel Class Reference

LCStore implementation which uses PHP accelerator to store data. More...

Inheritance diagram for LCStoreAccel:
Collaboration diagram for LCStoreAccel:

Public Member Functions

 __construct ()
 
 finishWrite ()
 Finish a write transaction. More...
 
 get ( $code, $key)
 Get a value. More...
 
 set ( $key, $value)
 Set a key to a given value. More...
 
 startWrite ( $code)
 Start a write transaction. More...
 

Private Attributes

 $currentLang
 
 $keys
 

Detailed Description

LCStore implementation which uses PHP accelerator to store data.

This will work if one of XCache, WinCache or APC cacher is configured. (See ObjectCache.php)

Definition at line 1094 of file LocalisationCache.php.

Constructor & Destructor Documentation

◆ __construct()

LCStoreAccel::__construct ( )

Definition at line 1098 of file LocalisationCache.php.

References cache, CACHE_ACCEL, and wfGetCache().

Member Function Documentation

◆ finishWrite()

LCStoreAccel::finishWrite ( )

Finish a write transaction.

Implements LCStore.

Definition at line 1121 of file LocalisationCache.php.

References array(), cache, and wfMemcKey().

◆ get()

LCStoreAccel::get (   $code,
  $key 
)

Get a value.

Parameters
string$codeLanguage code
string$keyCache key

Implements LCStore.

Definition at line 1102 of file LocalisationCache.php.

References cache, and wfMemcKey().

◆ set()

LCStoreAccel::set (   $key,
  $value 
)

Set a key to a given value.

startWrite() must be called before this is called, and finishWrite() must be called afterwards.

Parameters
string$key
mixed$value

Implements LCStore.

Definition at line 1130 of file LocalisationCache.php.

References $value, cache, and wfMemcKey().

◆ startWrite()

LCStoreAccel::startWrite (   $code)

Start a write transaction.

Parameters
string$codeLanguage code

Implements LCStore.

Definition at line 1109 of file LocalisationCache.php.

References $keys, array(), as, cache, and wfMemcKey().

Member Data Documentation

◆ $currentLang

LCStoreAccel::$currentLang
private

Definition at line 1095 of file LocalisationCache.php.

◆ $keys

LCStoreAccel::$keys
private

Definition at line 1096 of file LocalisationCache.php.

Referenced by startWrite().


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