PHP 클래스 Kevinrob\GuzzleCache\CacheEntry

파일 보기 프로젝트 열기: kevinrob/guzzle-cache-middleware 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dateCreated DateTime
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
$responseBody string Response::body is a stream and can't be serialized.
$staleAt DateTime
$staleIfErrorTo DateTime
$staleWhileRevalidateTo DateTime
$timestampStale integer Cached timestamp of staleAt variable.

공개 메소드들

메소드 설명
__construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, DateTime $staleAt, DateTime $staleIfErrorTo = null, DateTime $staleWhileRevalidateTo = null )
__sleep ( )
__wakeup ( )
getAge ( ) : integer
getOriginalRequest ( ) : Psr\Http\Message\RequestInterface
getResponse ( ) : Psr\Http\Message\ResponseInterface
getStaleAge ( ) : integer
getStaleAt ( ) : DateTime
getTTL ( ) : integer
hasValidationInformation ( ) : boolean
isFresh ( ) : boolean
isStale ( ) : boolean
isVaryEquals ( Psr\Http\Message\RequestInterface $request ) : boolean
serveStaleIfError ( ) : boolean
staleWhileValidate ( ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, DateTime $staleAt, DateTime $staleIfErrorTo = null, DateTime $staleWhileRevalidateTo = null )
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
$staleAt DateTime
$staleIfErrorTo DateTime if null, detected with the headers (RFC 5861)
$staleWhileRevalidateTo DateTime

__sleep() 공개 메소드

public __sleep ( )

__wakeup() 공개 메소드

public __wakeup ( )

getAge() 공개 메소드

public getAge ( ) : integer
리턴 integer Age in seconds

getOriginalRequest() 공개 메소드

public getOriginalRequest ( ) : Psr\Http\Message\RequestInterface
리턴 Psr\Http\Message\RequestInterface

getResponse() 공개 메소드

public getResponse ( ) : Psr\Http\Message\ResponseInterface
리턴 Psr\Http\Message\ResponseInterface

getStaleAge() 공개 메소드

public getStaleAge ( ) : integer
리턴 integer positive value equal staled

getStaleAt() 공개 메소드

public getStaleAt ( ) : DateTime
리턴 DateTime

getTTL() 공개 메소드

public getTTL ( ) : integer
리턴 integer TTL in seconds (0 = infinite)

hasValidationInformation() 공개 메소드

isFresh() 공개 메소드

public isFresh ( ) : boolean
리턴 boolean

isStale() 공개 메소드

public isStale ( ) : boolean
리턴 boolean

isVaryEquals() 공개 메소드

public isVaryEquals ( Psr\Http\Message\RequestInterface $request ) : boolean
$request Psr\Http\Message\RequestInterface
리턴 boolean

serveStaleIfError() 공개 메소드

public serveStaleIfError ( ) : boolean
리턴 boolean

staleWhileValidate() 공개 메소드

public staleWhileValidate ( ) : boolean
리턴 boolean

프로퍼티 상세

$dateCreated 보호되어 있는 프로퍼티

protected DateTime $dateCreated
리턴 DateTime

$request 보호되어 있는 프로퍼티

protected RequestInterface,Psr\Http\Message $request
리턴 Psr\Http\Message\RequestInterface

$response 보호되어 있는 프로퍼티

protected ResponseInterface,Psr\Http\Message $response
리턴 Psr\Http\Message\ResponseInterface

$responseBody 보호되어 있는 프로퍼티

Response::body is a stream and can't be serialized.
protected string $responseBody
리턴 string

$staleAt 보호되어 있는 프로퍼티

protected DateTime $staleAt
리턴 DateTime

$staleIfErrorTo 보호되어 있는 프로퍼티

protected DateTime $staleIfErrorTo
리턴 DateTime

$staleWhileRevalidateTo 보호되어 있는 프로퍼티

protected DateTime $staleWhileRevalidateTo
리턴 DateTime

$timestampStale 보호되어 있는 프로퍼티

Cached timestamp of staleAt variable.
protected int $timestampStale
리턴 integer