PHP 클래스 CI_Cache_wincache, TastyIgniter

Read more about Wincache functions here: http://www.php.net/manual/en/ref.wincache.php
저자: Mike Murkovic
상속: extends CI_Driver
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

공개 메소드들

메소드 설명
__construct ( ) : void Class constructor
cache_info ( ) : mixed Cache Info
clean ( ) : boolean Clean the cache
decrement ( string $id, integer $offset = 1 ) : mixed Decrement a raw value
delete ( $id ) : boolean Delete from Cache
get ( string $id ) : mixed Get
get_metadata ( $id ) : mixed Get Cache Metadata
increment ( string $id, integer $offset = 1 ) : mixed Increment a raw value
is_supported ( ) : boolean is_supported()
save ( string $id, mixed $data, integer $ttl = 60, boolean $raw = FALSE ) : boolean Cache Save

메소드 상세

__construct() 공개 메소드

Only present so that an error message is logged if APC is not available.
public __construct ( ) : void
리턴 void

cache_info() 공개 메소드

Cache Info
public cache_info ( ) : mixed
리턴 mixed array on success, false on failure

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 ) : mixed
$id string Cache ID
$offset integer Step/value to reduce by
리턴 mixed New value on success or FALSE on failure

delete() 공개 메소드

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

get() 공개 메소드

Look for a value in the cache. If it exists, return the data, if not, return FALSE
public get ( string $id ) : mixed
$id string Cache Ide
리턴 mixed Value that is stored/FALSE on failure

get_metadata() 공개 메소드

Get Cache Metadata
public get_metadata ( $id ) : mixed
리턴 mixed array on success/false on failure

increment() 공개 메소드

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

is_supported() 공개 메소드

Check to see if WinCache is available on this system, bail if it isn't.
public is_supported ( ) : boolean
리턴 boolean

save() 공개 메소드

Cache Save
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