PHP 클래스 Odesk\Phystrix\RequestCache

파일 보기 프로젝트 열기: odesk/phystrix 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cachedResults array Associative array of results per command key per cache key

공개 메소드들

메소드 설명
clear ( string $commandKey, string $cacheKey ) Clears the cache for a given cacheKey, for a given commandKey
clearAll ( string $commandKey ) Clears the cache for a given commandKey only
exists ( string $commandKey, string $cacheKey ) : boolean Returns true, if specified cache key exists
get ( string $commandKey, string $cacheKey ) : mixed | null Attempts to obtain cached result for a given command type
put ( string $commandKey, string $cacheKey, mixed $result ) Puts request result into cache for a given command type

메소드 상세

clear() 공개 메소드

Clears the cache for a given cacheKey, for a given commandKey
public clear ( string $commandKey, string $cacheKey )
$commandKey string
$cacheKey string

clearAll() 공개 메소드

Clears the cache for a given commandKey only
public clearAll ( string $commandKey )
$commandKey string

exists() 공개 메소드

Returns true, if specified cache key exists
public exists ( string $commandKey, string $cacheKey ) : boolean
$commandKey string
$cacheKey string
리턴 boolean

get() 공개 메소드

Attempts to obtain cached result for a given command type
public get ( string $commandKey, string $cacheKey ) : mixed | null
$commandKey string
$cacheKey string
리턴 mixed | null

put() 공개 메소드

Puts request result into cache for a given command type
public put ( string $commandKey, string $cacheKey, mixed $result )
$commandKey string
$cacheKey string
$result mixed

프로퍼티 상세

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

Associative array of results per command key per cache key
protected array $cachedResults
리턴 array