PHP 클래스 Cachearium\CacheKey

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

공개 프로퍼티들

프로퍼티 타입 설명
$base string This is the base key. It's the main index, so to speak. This is useful as a first level to separate cache data logically.
$id string This is the second key, usually an id.
$sub string

공개 메소드들

메소드 설명
__construct ( string $base, string $id, string $sub = '' )
debug ( ) : string Prints as a pretty string for debugging
getBase ( )
getHash ( ) : string Returns a hash for key.
getId ( )
getSub ( )
setBase ( $base )
setId ( $id )
setSub ( $sub )

메소드 상세

__construct() 공개 메소드

public __construct ( string $base, string $id, string $sub = '' )
$base string Base string name for the type of cache (e.g., Event)
$id string Item id
$sub string If an item is cache in parts, this is used to specify the parts.

debug() 공개 메소드

Prints as a pretty string for debugging
public debug ( ) : string
리턴 string

getBase() 공개 메소드

public getBase ( )

getHash() 공개 메소드

Returns a hash for key.
public getHash ( ) : string
리턴 string

getId() 공개 메소드

public getId ( )

getSub() 공개 메소드

public getSub ( )

setBase() 공개 메소드

public setBase ( $base )

setId() 공개 메소드

public setId ( $id )

setSub() 공개 메소드

public setSub ( $sub )

프로퍼티 상세

$base 공개적으로 프로퍼티

This is the base key. It's the main index, so to speak. This is useful as a first level to separate cache data logically.
public string $base
리턴 string

$id 공개적으로 프로퍼티

This is the second key, usually an id.
public string $id
리턴 string

$sub 공개적으로 프로퍼티

public string $sub
리턴 string