PHP Класс CI_Cache_file, TastyIgniter

Автор: ExpressionEngine Dev Team
Наследование: extends CI_Driver
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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