class QueryCacheKey extends CacheKey (View source)

A cache key that identifies a particular query.

Properties

string $hash READ-ONLY: Public only for performance reasons, it should be considered immutable. from CacheKey
integer $lifetime READ-ONLY: Public only for performance reasons, it should be considered immutable.
integer $cacheMode READ-ONLY: Public only for performance reasons, it should be considered immutable.
TimestampCacheKey|null $timestampKey READ-ONLY: Public only for performance reasons, it should be considered immutable.

Methods

__construct(string $hash, integer $lifetime = 0, int $cacheMode = Cache::MODE_NORMAL, TimestampCacheKey $timestampKey = null)

No description

Details

__construct(string $hash, integer $lifetime = 0, int $cacheMode = Cache::MODE_NORMAL, TimestampCacheKey $timestampKey = null)

Parameters

string $hash Result cache id
integer $lifetime Query lifetime
int $cacheMode Query cache mode
TimestampCacheKey $timestampKey