$lifetime
$lifetime : integer
Cache lifetime
SQLite cache adapter class
__construct(string $db, integer $lifetime, string $table = 'pop_cache', boolean $pdo = false) : \Pop\Cache\Adapter\Sqlite
Constructor
Instantiate the cache db object
string | $db | |
integer | $lifetime | |
string | $table | |
boolean | $pdo |
setLifetime(integer $lifetime) : \Pop\Cache\Adapter\AbstractAdapter
Set the lifetime.
integer | $lifetime |
save(string $id, mixed $value) : \Pop\Cache\Adapter\Sqlite
Save a value to cache.
string | $id | |
mixed | $value |
remove(string $id) : \Pop\Cache\Adapter\Sqlite
Remove a value in cache.
string | $id |
clear(boolean $del = false) : \Pop\Cache\Adapter\Sqlite
Clear all stored values from cache.
boolean | $del |
setDb(string $db) : \Pop\Cache\Adapter\Sqlite
Set the current cache db file.
string | $db |
setTable(string $table) : \Pop\Cache\Adapter\Sqlite
Set the cache db table.
string | $table |
delete() : \Pop\Cache\Adapter\Sqlite
Method to delete the entire database file
prepare(string $sql) : \Pop\Cache\Adapter\Sqlite
Prepare a SQL query.
string | $sql |
bindParams(array $params) : \Pop\Cache\Adapter\Sqlite
Bind parameters to for a prepared SQL query.
array | $params |