ClientHeadersCache
in package
Gets/Puts the client headers from/to the cache
Tags
Table of Contents
Constants
- CACHE_PATH = 'client_headers'
Properties
- $cacheExpirySeconds : int
- $cachePath : string
- $useCache : bool
Methods
- __construct() : mixed
- getHeaders() : array<string|int, mixed>|null
- setHeaders() : mixed
- isCacheExpired() : bool
Constants
CACHE_PATH
public
mixed
CACHE_PATH
= 'client_headers'
Properties
$cacheExpirySeconds
private
int
$cacheExpirySeconds
$cachePath
private
string
$cachePath
$useCache
private
bool
$useCache
Methods
__construct()
public
__construct(Client $client) : mixed
Parameters
- $client : Client
getHeaders()
public
getHeaders() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullsetHeaders()
public
setHeaders( $headersJson) : mixed
Parameters
isCacheExpired()
private
isCacheExpired() : bool