com\setasign\SetaFramework\SimpleCache

CacheValue Class CacheValue

File: /SetaFramework/src/SimpleCache/CacheValue.php

The cache value is a wrapper object that will be serialized and cached. It contains the real cached value and all necessary validation infos.

Class hierarchy

Summary

Properties

$validationInfo

$value

protected CacheValue::$value

Methods

__construct()

public CacheValue::__construct (
mixed $value,
array<int, mixed> $validationInfo
)

CacheValue constructor.

Parameters
$value : mixed
 
$validationInfo : array<int, mixed>
 

getValidationInfo()

public CacheValue::getValidationInfo (
int $index
): ?mixed

Return the saved validation information for this value.

Parameters
$index : int
 

getValue()

public CacheValue::getValue (
void
): ?mixed

Returns the cached value.