PHP 인터페이스 Pinq\Caching\ICacheAdapter

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
clear ( ) : void Clears all cached values under the namespace.
contains ( string $key ) : boolean Returns whether the supplied function has
forNamespace ( string $namespace ) : Pinq\Caching\ICacheAdapter Returns a new cache implementation for a new namespace.
getNamespace ( ) : string The namespace of the cache.
hasNamespace ( ) : boolean Whether the cache is namespaced.
inGlobalNamespace ( ) : Pinq\Caching\ICacheAdapter Returns a new cache implementation for the global namespace.
remove ( string $key ) : void Removes the value associated with the supplied key
save ( string $key, mixed $value ) : void Saves the supplied value to the cache.
tryGet ( string $key ) : mixed Attempt to get the cached value associated with the supplied key

메소드 상세

clear() 공개 메소드

Clears all cached values under the namespace.
public clear ( ) : void
리턴 void

contains() 공개 메소드

Returns whether the supplied function has
public contains ( string $key ) : boolean
$key string
리턴 boolean

forNamespace() 공개 메소드

Returns a new cache implementation for a new namespace.
public forNamespace ( string $namespace ) : Pinq\Caching\ICacheAdapter
$namespace string
리턴 Pinq\Caching\ICacheAdapter

getNamespace() 공개 메소드

The namespace of the cache.
public getNamespace ( ) : string
리턴 string

hasNamespace() 공개 메소드

Whether the cache is namespaced.
public hasNamespace ( ) : boolean
리턴 boolean

inGlobalNamespace() 공개 메소드

Returns a new cache implementation for the global namespace.
public inGlobalNamespace ( ) : Pinq\Caching\ICacheAdapter
리턴 Pinq\Caching\ICacheAdapter

remove() 공개 메소드

Removes the value associated with the supplied key
public remove ( string $key ) : void
$key string
리턴 void

save() 공개 메소드

Saves the supplied value to the cache.
public save ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

tryGet() 공개 메소드

Attempt to get the cached value associated with the supplied key
public tryGet ( string $key ) : mixed
$key string
리턴 mixed