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
Показать файл Открыть проект

Открытые методы

Метод Описание
__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