PHP 인터페이스 ManaPHP\Cache\AdapterInterface

파일 보기 프로젝트 열기: manaphp/manaphp 0 사용 예제들

공개 메소드들

메소드 설명
delete ( string $key ) Deletes a value with the specified key from cache
exists ( string $key ) : boolean Checks whether a specified key exists in the cache.
get ( string $key ) : string | false Retrieves a value from cache with a specified key.
set ( string $key, string $value, integer $ttl ) : void Stores a value identified by a key into cache.

메소드 상세

delete() 공개 메소드

Deletes a value with the specified key from cache
public delete ( string $key )
$key string

exists() 공개 메소드

Checks whether a specified key exists in the cache.
public exists ( string $key ) : boolean
$key string
리턴 boolean

get() 공개 메소드

Retrieves a value from cache with a specified key.
public get ( string $key ) : string | false
$key string
리턴 string | false

set() 공개 메소드

Stores a value identified by a key into cache.
public set ( string $key, string $value, integer $ttl ) : void
$key string
$value string
$ttl integer
리턴 void