PHP 클래스 dbCacheDriver

상속: implements jICacheDriver
파일 보기 프로젝트 열기: jelix/jelix

공개 프로퍼티들

프로퍼티 타입 설명
$automatic_cleaning_factor integer automatic cleaning process 0 means disabled, 1 means systematic cache cleaning of expired data (at each set or add call), greater values mean less frequent cleaning
$enabled boolean active cache ?
$profil_name string profil name used in the ini file
$ttl boolean TTL used

보호된 프로퍼티들

프로퍼티 타입 설명
$_dao string name of the table mapping.
$_dbprofile string connexion dbprofile
$base64encoding for some sqlite version, it seems it doesn't support very well result of php serialization. This flags indicates to encode values before storing them

공개 메소드들

메소드 설명
__construct ( $params )
decrement ( string $key, mixed $var = 1 ) : boolean decrement a specific data value by $var
delete ( string $key ) : boolean delete a specific data in the cache
flush ( ) : boolean clear all data in the cache
garbage ( ) : boolean remove from the cache data of which TTL was expired
get ( mixed $key ) : mixed read a specific data in the cache.
increment ( string $key, mixed $var = 1 ) : boolean increment a specific data value by $var
replace ( string $key, mixed $var, integer $ttl ) : boolean replace a specific data value by $var
set ( string $key, mixed $var, integer $ttl ) : boolean set a specific data in the cache

메소드 상세

__construct() 공개 메소드

public __construct ( $params )

decrement() 공개 메소드

decrement a specific data value by $var
public decrement ( string $key, mixed $var = 1 ) : boolean
$key string key used for storing data in the cache
$var mixed value used
리턴 boolean false if failure

delete() 공개 메소드

delete a specific data in the cache
public delete ( string $key ) : boolean
$key string key used for storing data in the cache
리턴 boolean false if failure

flush() 공개 메소드

clear all data in the cache
public flush ( ) : boolean
리턴 boolean false if failure

garbage() 공개 메소드

remove from the cache data of which TTL was expired
public garbage ( ) : boolean
리턴 boolean false if failure

get() 공개 메소드

read a specific data in the cache.
public get ( mixed $key ) : mixed
$key mixed key or array of keys used for storing data in the cache
리턴 mixed $data data or false if failure

increment() 공개 메소드

increment a specific data value by $var
public increment ( string $key, mixed $var = 1 ) : boolean
$key string key used for storing data in the cache
$var mixed value used
리턴 boolean false if failure

replace() 공개 메소드

replace a specific data value by $var
public replace ( string $key, mixed $var, integer $ttl ) : boolean
$key string key used for storing data in the cache
$var mixed data to replace
$ttl integer data time expiration
리턴 boolean false if failure

set() 공개 메소드

set a specific data in the cache
public set ( string $key, mixed $var, integer $ttl ) : boolean
$key string key used for storing data
$var mixed data to store
$ttl integer data time expiration. -1 means no change
리턴 boolean false if failure

프로퍼티 상세

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

name of the table mapping.
protected string $_dao
리턴 string

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

connexion dbprofile
protected string $_dbprofile
리턴 string

$automatic_cleaning_factor 공개적으로 프로퍼티

automatic cleaning process 0 means disabled, 1 means systematic cache cleaning of expired data (at each set or add call), greater values mean less frequent cleaning
public int $automatic_cleaning_factor
리턴 integer

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

for some sqlite version, it seems it doesn't support very well result of php serialization. This flags indicates to encode values before storing them
protected $base64encoding

$enabled 공개적으로 프로퍼티

active cache ?
public bool $enabled
리턴 boolean

$profil_name 공개적으로 프로퍼티

profil name used in the ini file
public string $profil_name
리턴 string

$ttl 공개적으로 프로퍼티

TTL used
public bool $ttl
리턴 boolean