PHP 클래스 CI_Cache_file, TastyIgniter

저자: ExpressionEngine Dev Team
상속: extends CI_Driver
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

보호된 프로퍼티들

프로퍼티 타입 설명
$_cache_path string Directory in which to save cache files

공개 메소드들

메소드 설명
__construct ( ) : void Initialize file-based cache
cache_info ( $type = NULL ) : mixed Cache Info
clean ( ) : boolean Clean the Cache
decrement ( string $id, integer $offset = 1 ) : New Decrement a raw value
delete ( $id ) : boolean Delete from Cache
get ( string $id ) : mixed Fetch from cache
get_metadata ( $id ) : mixed Get Cache Metadata
increment ( string $id, integer $offset = 1 ) : New Increment a raw value
is_supported ( ) : boolean Is supported
save ( string $id, mixed $data, integer $ttl = 60, boolean $raw = FALSE ) : boolean Save into cache

보호된 메소드들

메소드 설명
_get ( string $id ) : mixed Get all data

메소드 상세

__construct() 공개 메소드

Initialize file-based cache
public __construct ( ) : void
리턴 void

_get() 보호된 메소드

Internal method to get all the relevant data about a cache item
protected _get ( string $id ) : mixed
$id string Cache ID
리턴 mixed Data array on success or FALSE on failure

cache_info() 공개 메소드

Not supported by file-based caching
public cache_info ( $type = NULL ) : mixed
리턴 mixed FALSE

clean() 공개 메소드

Clean the Cache
public clean ( ) : boolean
리턴 boolean false on failure/true on success

decrement() 공개 메소드

Decrement a raw value
public decrement ( string $id, integer $offset = 1 ) : New
$id string Cache ID
$offset integer Step/value to reduce by
리턴 New value on success, FALSE on failure

delete() 공개 메소드

Delete from Cache
public delete ( $id ) : boolean
리턴 boolean true on success/false on failure

get() 공개 메소드

Fetch from cache
public get ( string $id ) : mixed
$id string Cache ID
리턴 mixed Data on success, FALSE on failure

get_metadata() 공개 메소드

Get Cache Metadata
public get_metadata ( $id ) : mixed
리턴 mixed FALSE on failure, array on success.

increment() 공개 메소드

Increment a raw value
public increment ( string $id, integer $offset = 1 ) : New
$id string Cache ID
$offset integer Step/value to add
리턴 New value on success, FALSE on failure

is_supported() 공개 메소드

In the file driver, check to see that the cache directory is indeed writable
public is_supported ( ) : boolean
리턴 boolean

save() 공개 메소드

Save into cache
public save ( string $id, mixed $data, integer $ttl = 60, boolean $raw = FALSE ) : boolean
$id string Cache ID
$data mixed Data to store
$ttl integer Time to live in seconds
$raw boolean Whether to store the raw value (unused)
리턴 boolean TRUE on success, FALSE on failure

프로퍼티 상세

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

Directory in which to save cache files
protected string $_cache_path
리턴 string