com\setasign\SetaFramework\SimpleCache

ValidationCacheEntry Class ValidationCacheEntry

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

The validation cache entry is a wrapper around PSR-16 with the possibility to let the cache invalidate by validators (instead of just time).

Class hierarchy

Summary

Properties

$cache

$key


Methods

__construct()

public ValidationCacheEntry::__construct (
\Psr\SimpleCache\CacheInterface $cache,
string $key,
Validator\ValidatorInterface ...$validators
)

SerializeContainer constructor.

Parameters
$cache : \Psr\SimpleCache\CacheInterface
 
$key : string
 
$validators : Validator\ValidatorInterface
 

__sleep()

public ValidationCacheEntry::__sleep (
void
): void

delete()

public ValidationCacheEntry::delete (
void
): bool

get()

public ValidationCacheEntry::get (
void
): ?mixed

set()

public ValidationCacheEntry::set (
mixed $value,
\DateInterval|int|null $ttl = null
): bool
Parameters
$value : mixed
 
$ttl : \DateInterval|int|null