PHP 클래스 CI_Cache_memcached, TastyIgniter

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_config array Memcached configuration
$_memcached object Holds the memcached object

공개 메소드들

메소드 설명
__construct ( ) : void Class constructor
__destruct ( ) : void Class destructor
cache_info ( ) : mixed Cache Info
clean ( ) : boolean Clean the Cache
decrement ( string $id, integer $offset = 1 ) : mixed Decrement a raw value
delete ( mixed $id ) : boolean Delete from Cache
get ( string $id ) : mixed Fetch from cache
get_metadata ( mixed $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 Save

메소드 상세

__construct() 공개 메소드

Setup Memcache(d)
public __construct ( ) : void
리턴 void

__destruct() 공개 메소드

Closes the connection to Memcache(d) if present.
public __destruct ( ) : 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 ( mixed $id ) : boolean
$id mixed key to be deleted.
리턴 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 ( mixed $id ) : mixed
$id mixed key to get cache metadata on
리턴 mixed FALSE on failure, array on success.

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() 공개 메소드

Returns FALSE if memcached is not supported on the system. If it is, we setup the memcached object & return TRUE
public is_supported ( ) : boolean
리턴 boolean

save() 공개 메소드

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

프로퍼티 상세

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

Memcached configuration
protected array $_config
리턴 array

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

Holds the memcached object
protected object $_memcached
리턴 object