PHP Класс Kevinrob\GuzzleCache\Strategy\PublicCacheStrategy
You can share the storage between applications.
For example, a response with cache-control header "private, max-age=60"
will be NOT cached by this strategy.
The rules applied are from RFC 7234.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Метод |
Описание |
|
__construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null ) |
|
|
Защищенные методы
Метод |
Описание |
|
getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) |
|
|
Описание методов
__construct()
публичный Метод
public __construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null ) |
$cache |
Kevinrob\GuzzleCache\Storage\CacheStorageInterface |
|
getCacheObject()
защищенный Метод
protected getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) |
$request |
Psr\Http\Message\RequestInterface |
|
$response |
Psr\Http\Message\ResponseInterface |
|