PHP 클래스 Cache

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

보호된 프로퍼티들

프로퍼티 타입 설명
$dsn
$prefix
$ref

공개 메소드들

메소드 설명
__construct ( $dsn = FALSE ) : object Class constructor
clear ( $key ) : boolean Delete cache entry
exists ( $key, &$val = NULL ) : array | FALSE Return timestamp and TTL of cache entry or FALSE if not found
get ( $key ) : mixed | FALSE Retrieve value of cache entry
load ( $dsn ) : string Load/auto-detect cache backend
reset ( $suffix = NULL, $lifetime ) : boolean Clear contents of cache backend
set ( $key, $val, $ttl ) : mixed | FALSE Store value in cache

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( $dsn = FALSE ) : object
$dsn bool|string
리턴 object

clear() 공개 메소드

Delete cache entry
public clear ( $key ) : boolean
$key string
리턴 boolean

exists() 공개 메소드

Return timestamp and TTL of cache entry or FALSE if not found
public exists ( $key, &$val = NULL ) : array | FALSE
$key string
$val mixed
리턴 array | FALSE

get() 공개 메소드

Retrieve value of cache entry
public get ( $key ) : mixed | FALSE
$key string
리턴 mixed | FALSE

load() 공개 메소드

Load/auto-detect cache backend
public load ( $dsn ) : string
$dsn bool|string
리턴 string

reset() 공개 메소드

Clear contents of cache backend
public reset ( $suffix = NULL, $lifetime ) : boolean
$suffix string
$lifetime int
리턴 boolean

set() 공개 메소드

Store value in cache
public set ( $key, $val, $ttl ) : mixed | FALSE
$key string
$val mixed
$ttl int
리턴 mixed | FALSE

프로퍼티 상세

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

protected $dsn

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

protected $prefix

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

protected $ref