PHP 클래스 Pop\Cache\Adapter\Sqlite

저자: Nick Sagona, III ([email protected])
상속: extends Pop\Cache\Adapter\AbstractAdapter
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$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