cache driver for data stored in a database Warning : Beware about the time returned by the DBMS of the server and the server PHP client : possible asynchronous time (particulary in case of use of multiple servers, incoherent data can be involved).
| package |
jelix |
|---|---|
| subpackage |
cache_plugin |
__construct(array $params)
arraydriver parameters, written in the ini file
decrement(string $key, mixed $var = 1) : boolean
stringkey used for storing data in the cache
mixedvalue used
booleanfalse if failure
delete(string $key) : boolean
stringkey used for storing data in the cache
booleanfalse if failure
flush() : boolean
booleanfalse if failure
garbage() : boolean
booleanfalse if failure
get(mixed $key) : mixed
| Throws |
|
|---|
mixedkey or array of keys used for storing data in the cache
mixed$data data or false if failure
increment(string $key, mixed $var = 1) : boolean
stringkey used for storing data in the cache
mixedvalue used
booleanfalse if failure
replace(string $key, mixed $var, integer $ttl) : boolean
stringkey used for storing data in the cache
mixeddata to replace
integerdata time expiration
booleanfalse if failure
set(string $key, mixed $var, integer $ttl) : boolean
| Throws |
|
|---|
stringkey used for storing data
mixeddata to store
integerdata time expiration. -1 means no change
booleanfalse if failure
_dao : string
| var | |
|---|---|
| access |
protected |
string
_dbprofile : string
| var | |
|---|---|
| access |
protected |
string
profil_name : string
| var | |
|---|---|
| access |
public |
string
enabled : boolean
| var | |
|---|---|
| access |
public |
boolean
ttl : boolean
| var | |
|---|---|
| access |
public |
boolean
automatic_cleaning_factor : integer
| var | |
|---|---|
| access |
public |
integer
base64encoding :