PHP Class Kevinrob\GuzzleCache\Storage\Psr6CacheStorage

Inheritance: implements Kevinrob\GuzzleCache\Storage\CacheStorageInterface
Afficher le fichier Open project: kevinrob/guzzle-cache-middleware

Protected Properties

Свойство Type Description
$cachePool Psr\Cache\CacheItemPoolInterface The cache pool.
$lastItem Psr\Cache\CacheItemInterface | null This item is transiently stored so that save() can reuse the cache item usually retrieved by fetch() beforehand, instead of requesting it a second time.

Méthodes publiques

Méthode Description
__construct ( Psr\Cache\CacheItemPoolInterface $cachePool )
fetch ( $key )
save ( $key, CacheEntry $data )

Method Details

__construct() public méthode

public __construct ( Psr\Cache\CacheItemPoolInterface $cachePool )
$cachePool Psr\Cache\CacheItemPoolInterface

fetch() public méthode

public fetch ( $key )

save() public méthode

public save ( $key, CacheEntry $data )
$data Kevinrob\GuzzleCache\CacheEntry

Property Details

$cachePool protected_oe property

The cache pool.
protected CacheItemPoolInterface,Psr\Cache $cachePool
Résultat Psr\Cache\CacheItemPoolInterface

$lastItem protected_oe property

This item is transiently stored so that save() can reuse the cache item usually retrieved by fetch() beforehand, instead of requesting it a second time.
protected CacheItemInterface,Psr\Cache|null $lastItem
Résultat Psr\Cache\CacheItemInterface | null