Documentation

QueryCacheKey extends CacheKey
in package

A cache key that identifies a particular query.

Table of Contents

Properties

$cacheMode  : int
Cache mode
$hash  : string
Unique identifier
$lifetime  : int
Cache key lifetime
$timestampKey  : TimestampCacheKey|null

Methods

__construct()  : mixed

Properties

$cacheMode

Cache mode

public int $cacheMode
Tags
readonly

Public only for performance reasons, it should be considered immutable.

psalm-var

Cache::MODE_*

$hash

Unique identifier

public string $hash
Tags
readonly

Public only for performance reasons, it should be considered immutable.

$lifetime

Cache key lifetime

public int $lifetime
Tags
readonly

Public only for performance reasons, it should be considered immutable.

Methods

__construct()

public __construct(string $cacheId[, int $lifetime = 0 ][, int $cacheMode = Cache::MODE_NORMAL ][, TimestampCacheKey|null $timestampKey = null ]) : mixed
Parameters
$cacheId : string
$lifetime : int = 0
$cacheMode : int = Cache::MODE_NORMAL
$timestampKey : TimestampCacheKey|null = null
Tags
psalm-param

Cache::MODE_* $cacheMode


        
On this page

Search results