PHP Трейт WhichBrowser\Cache

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$cached boolean Was this result retrieve from the cache?

Открытые методы

Метод Описание
setCache ( object $cache, integer $expires = 900 ) Enable caching of results

Приватные методы

Метод Описание
analyseWithCache ( array | string $headers, $options = [] ) : boolean Retrieve the result from the cache, or analyse and store in the cache
applyCachedData ( array $data ) Apply cached data to the main Parser object
retrieveCachedData ( ) : array Retrieve the data that can be cached from the main Parser object

Описание методов

setCache() публичный Метод

Enable caching of results
public setCache ( object $cache, integer $expires = 900 )
$cache object An PSR-6 cache pool (an object that implements Psr\Cache\CacheItemPoolInterface)
$expires integer Optional the number of seconds after which a cached item expires, default is 15 minutes

Описание свойств

$cached публичное свойство

Was this result retrieve from the cache?
public bool $cached
Результат boolean