MediaWiki 1.42.0-rc.0
SerializedValueContainer Class Reference

Helper class for segmenting large cache values without relying on serializing classes. More...

Static Public Member Functions

static isSegmented ( $value)
 
static isUnified ( $value)
 
static newSegmented (array $segmentHashList)
 

Public Attributes

const SEGMENTED_HASHES = '__hashes__'
 
const UNIFIED_DATA = '__data__'
 

Detailed Description

Helper class for segmenting large cache values without relying on serializing classes.

Since
1.34

Definition at line 8 of file SerializedValueContainer.php.

Member Function Documentation

◆ isSegmented()

static SerializedValueContainer::isSegmented ( $value)
static
Parameters
mixed$value
Returns
bool

Definition at line 49 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\delete(), and MediumSpecificBagOStuff\resolveSegments().

◆ isUnified()

static SerializedValueContainer::isUnified ( $value)
static
Deprecated
since 1.42.
Parameters
mixed$value
Returns
bool

Definition at line 37 of file SerializedValueContainer.php.

References wfDeprecated().

◆ newSegmented()

static SerializedValueContainer::newSegmented ( array $segmentHashList)
static
Parameters
string[]$segmentHashListOrdered list of hashes for each segment
Returns
stdClass

Definition at line 25 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\makeValueOrSegmentList().

Member Data Documentation

◆ SEGMENTED_HASHES

const SerializedValueContainer::SEGMENTED_HASHES = '__hashes__'

◆ UNIFIED_DATA

const SerializedValueContainer::UNIFIED_DATA = '__data__'
Deprecated
since 1.42

Definition at line 18 of file SerializedValueContainer.php.


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