PHP Класс Pop\Cache\Adapter\Sqlite

Автор: Nick Sagona, III ([email protected])
Наследование: extends Pop\Cache\Adapter\AbstractAdapter
Показать файл Открыть проект

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

Свойство Тип Описание
$db string Cache db file
$sqlite Pop\Db\Sql Cache SQL object
$table string Cache db table

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

Метод Описание
__construct ( string $db, string $table = 'pop_cache', boolean $pdo = false ) : Sqlite Constructor
clear ( ) : void Method to clear all stored values from cache.
delete ( ) : void Method to delete the entire database file
getDb ( ) : string Method to get the current cache db file.
getTable ( ) : string Method to get the current cache db table.
load ( string $id, string $time ) : mixed Method to load a value from cache.
remove ( string $id ) : void Method to delete a value in cache.
save ( string $id, mixed $value, string $time ) : void Method to save a value to cache.
setTable ( string $table = 'pop_cache' ) : Sqlite Method to Set the cache db table.

Описание методов

__construct() публичный Метод

Instantiate the cache db object
public __construct ( string $db, string $table = 'pop_cache', boolean $pdo = false ) : Sqlite
$db string
$table string
$pdo boolean
Результат Sqlite

clear() публичный Метод

Method to clear all stored values from cache.
public clear ( ) : void
Результат void

delete() публичный Метод

Method to delete the entire database file
public delete ( ) : void
Результат void

getDb() публичный Метод

Method to get the current cache db file.
public getDb ( ) : string
Результат string

getTable() публичный Метод

Method to get the current cache db table.
public getTable ( ) : string
Результат string

load() публичный Метод

Method to load a value from cache.
public load ( string $id, string $time ) : mixed
$id string
$time string
Результат mixed

remove() публичный Метод

Method to delete a value in cache.
public remove ( string $id ) : void
$id string
Результат void

save() публичный Метод

Method to save a value to cache.
public save ( string $id, mixed $value, string $time ) : void
$id string
$value mixed
$time string
Результат void

setTable() публичный Метод

Method to Set the cache db table.
public setTable ( string $table = 'pop_cache' ) : Sqlite
$table string
Результат Sqlite

Описание свойств

$db защищенное свойство

Cache db file
protected string $db
Результат string

$sqlite защищенное свойство

Cache SQL object
protected Sql,Pop\Db $sqlite
Результат Pop\Db\Sql

$table защищенное свойство

Cache db table
protected string $table
Результат string