$sql_tables_cached $sql_tables_cached : array Type array — Store list of tables and their associated keys for SQL cache (warning: this var must not be initialized here !)
$blacklist $blacklist : array Type array — List of blacklisted tables for SQL cache, these tables won't be indexed
set() set(string $key, mixed $value, integer $ttl) : boolean Store a data in cache Parameters string $key mixed $value integer $ttl Returns boolean
exists() exists(string $key) : boolean Check if a data is cached Parameters string $key Returns boolean
delete() delete(string $key) : array Delete one or several data from cache (* joker can be used) E.g.: delete('*'); delete('my_prefix_*'); delete('my_key_name'); Parameters string $key Returns array — List of deleted keys
setQuery() setQuery(string $query, array $result) Store a query in cache Parameters string $query array $result
_set() _set(string $key, mixed $value, integer $ttl) : boolean Cache a data Parameters string $key mixed $value integer $ttl Returns boolean
_exists() _exists(string $key) : boolean Check if a data is cached by key Parameters string $key Returns boolean
_delete() _delete(string $key) : boolean Delete a data from the cache by key Parameters string $key Returns boolean
isBlacklist() isBlacklist(string $query) : boolean Check if a query contain blacklisted tables Parameters string $query Returns boolean