Dbi
Less than 1 minute
Dbi
The DBI cache backend.
Similar to the database backend (which also can use SQLite3) except this has some performance benefits by using some SQLite3 specific database functions.
Available config options:
- cache_table - The table name to use within the SQLite3 database file. Default: cache_{namespace}.
- cache_db - The name of the file to use on disk for the SQLite3 database. Default: APPLICATION_PATH/.runtime/sqlite.db
Properties
weight
protected int $weight = 5db
private Adapter $dbMethods
available
public available(): boolinit
public init(string $namespace): voidParameters
| Parameter | Type | Description |
|---|---|---|
$namespace | string |
has
public has(string $key, bool $checkEmpty): boolParameters
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$checkEmpty | bool |
get
public get(string $key): mixedParameters
| Parameter | Type | Description |
|---|---|---|
$key | string |
set
public set(string $key, mixed $value, int $timeout): boolParameters
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$value | mixed | |
$timeout | int |
remove
public remove(string $key): boolParameters
| Parameter | Type | Description |
|---|---|---|
$key | string |
clear
public clear(): booltoArray
public toArray(): voidcount
public count(): intcriteria
Generate the criteria for a key.
private criteria(string $key, bool $checkEmpty): voidParameters
| Parameter | Type | Description |
|---|---|---|
$key | string | The key to generate criteria for |
$checkEmpty | bool | Check if the value is empty |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000