Documentation

ResponseCache
in package

Description of Cache

Tags
author

zozlak

Table of Contents

Properties

$cache  : CacheInterface
$log  : LoggerInterface|null
$missHandler  : callable
$repos  : array<string|int, RepoWrapperInterface>
$searchCfg  : SearchConfig
$ttlResource  : int
$ttlResponse  : int

Methods

__construct()  : mixed
getResponse()  : ResponseCacheItem
hashParams()  : string
Public only to simplify the testing.

Properties

Methods

__construct()

public __construct(CacheInterface $cache, callable $missHandler, int $ttlResource, int $ttlResponse, array<string|int, RepoWrapperInterface$repos[, SearchConfig|null $config = null ][, LoggerInterface|null $log = null ]) : mixed
Parameters
$cache : CacheInterface
$missHandler : callable

with the signature function(RepoResourceInterface $res): ResponseCacheItem

$ttlResource : int
$ttlResponse : int
$repos : array<string|int, RepoWrapperInterface>
$config : SearchConfig|null = null
$log : LoggerInterface|null = null

hashParams()

Public only to simplify the testing.

public hashParams(string|object|array<string|int, mixed> $key, string $resId) : string
Parameters
$key : string|object|array<string|int, mixed>
$resId : string
Return values
string

        
On this page

Search results