AbstractResponse
AbstractYes
Represents interface for the html cache response Class AbstractResponse
Table of Contents
Methods
- __construct() : mixed
- exists() : bool
- Checks whether the cache exists
- getContents() : string|false
- Returns the cache contents
- getContentType() : string|false
- Returns the content type of the cache
- getEtag() : string|int
- Returns the Entity Tag of the cache
- getLastModified() : int|false
- Returns the time the cache was last modified
- isGzipped() : bool
- Returns true if content is gzipped
- shouldCountQuota() : bool
- Should we count a quota limit
Methods
__construct()
public
__construct(string $cacheKey, array<string|int, mixed> $configuration, array<string|int, mixed> $htmlCacheOptions) : mixed
Parameters
- $cacheKey : string
-
unique cache identifier
- $configuration : array<string|int, mixed>
-
storage configuration
- $htmlCacheOptions : array<string|int, mixed>
-
html cache options
exists()
Checks whether the cache exists
public
abstract exists() : bool
Return values
boolgetContents()
Returns the cache contents
public
abstract getContents() : string|false
Return values
string|falsegetContentType()
Returns the content type of the cache
public
abstract getContentType() : string|false
Return values
string|falsegetEtag()
Returns the Entity Tag of the cache
public
abstract getEtag() : string|int
Return values
string|intgetLastModified()
Returns the time the cache was last modified
public
abstract getLastModified() : int|false
Return values
int|falseisGzipped()
Returns true if content is gzipped
public
abstract isGzipped() : bool
Return values
boolshouldCountQuota()
Should we count a quota limit
public
abstract shouldCountQuota() : bool