MediaWiki REL1_34
|
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 | SCHEMA = '__svc_schema__' |
const | SCHEMA_SEGMENTED = 'CAYCDAgCDw4' |
const | SCHEMA_UNIFIED = 'DAAIDgoKAQw' |
const | SEGMENTED_HASHES = '__hashes__' |
const | UNIFIED_DATA = '__data__' |
Static Private Member Functions | |
static | instanceOf ( $value, $schema) |
Helper class for segmenting large cache values without relying on serializing classes.
Definition at line 8 of file SerializedValueContainer.php.
|
staticprivate |
mixed | $value | |
string | $schema | SCHEMA_* class constant |
Definition at line 59 of file SerializedValueContainer.php.
Referenced by isSegmented(), and isUnified().
|
static |
mixed | $value |
Definition at line 50 of file SerializedValueContainer.php.
References instanceOf().
Referenced by MediumSpecificBagOStuff\delete().
|
static |
mixed | $value |
Definition at line 42 of file SerializedValueContainer.php.
References instanceOf().
Referenced by MediumSpecificBagOStuff\resolveSegments().
|
static |
string[] | $segmentHashList | Ordered list of hashes for each segment |
Definition at line 31 of file SerializedValueContainer.php.
References SCHEMA_SEGMENTED.
Referenced by MediumSpecificBagOStuff\makeValueOrSegmentList().
|
static |
string | $serialized |
Definition at line 20 of file SerializedValueContainer.php.
References $serialized, and SCHEMA_UNIFIED.
Referenced by MediumSpecificBagOStuff\makeValueOrSegmentList().
const SerializedValueContainer::SCHEMA = '__svc_schema__' |
Definition at line 9 of file SerializedValueContainer.php.
const SerializedValueContainer::SCHEMA_SEGMENTED = 'CAYCDAgCDw4' |
Definition at line 11 of file SerializedValueContainer.php.
Referenced by newSegmented().
const SerializedValueContainer::SCHEMA_UNIFIED = 'DAAIDgoKAQw' |
Definition at line 10 of file SerializedValueContainer.php.
Referenced by newUnified().
const SerializedValueContainer::SEGMENTED_HASHES = '__hashes__' |
Definition at line 14 of file SerializedValueContainer.php.
Referenced by MediumSpecificBagOStuff\delete().
const SerializedValueContainer::UNIFIED_DATA = '__data__' |
Definition at line 13 of file SerializedValueContainer.php.
Referenced by MediumSpecificBagOStuff\resolveSegments().