MediaWiki REL1_40
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)
 
static newUnified ( $serialized)
 

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 55 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\delete().

◆ isUnified()

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

Definition at line 44 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\resolveSegments().

◆ newSegmented()

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

Definition at line 33 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\makeValueOrSegmentList().

◆ newUnified()

static SerializedValueContainer::newUnified ( $serialized)
static
Parameters
string$serialized
Returns
stdClass

Definition at line 22 of file SerializedValueContainer.php.

References $serialized.

Member Data Documentation

◆ SEGMENTED_HASHES

const SerializedValueContainer::SEGMENTED_HASHES = '__hashes__'

Definition at line 16 of file SerializedValueContainer.php.

Referenced by MediumSpecificBagOStuff\delete().

◆ UNIFIED_DATA

const SerializedValueContainer::UNIFIED_DATA = '__data__'

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