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.
파일 보기
프로젝트 열기: kevinrob/guzzle-cache-middleware
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null ) |
|
|
보호된 메소드들
메소드 |
설명 |
|
getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) |
|
|
메소드 상세
public __construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null ) |
$cache |
Kevinrob\GuzzleCache\Storage\CacheStorageInterface |
|
protected getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) |
$request |
Psr\Http\Message\RequestInterface |
|
$response |
Psr\Http\Message\ResponseInterface |
|