Свойство | Type | Description | |
---|---|---|---|
$driver | string | Our database driver. | |
$pdo | PDO | The PDO object for our database. | |
$prefix | string | The prefix we should use for our tables. |
Méthode | Description | |
---|---|---|
delete ( string $type, string $key ) | Delete an entry from the data store. | |
get ( string $type, string $key ) : mixed | null | Retrieve a value from the data store. | |
getTableVersion ( string $name ) : integer | Get table version. | |
insertOrUpdate ( string $table, array $keys, array $data ) | Insert or update a key-value in the store. | |
set ( string $type, string $key, mixed $value, integer | null $expire = null ) | Save a value in the data store. | |
setTableVersion ( string $name, integer $version ) | Set table version. |
Méthode | Description | |
---|---|---|
__construct ( ) | Initialize the SQL data store. |
Méthode | Description | |
---|---|---|
cleanKVStore ( ) | Clean the key-value table of expired entries. | |
initKVTable ( ) | Initialize key-value table. | |
initTableVersionTable ( ) | Initialize the table-version table. |
public getTableVersion ( string $name ) : integer | ||
$name | string | Table name. |
Résultat | integer | The table version, or 0 if the table doesn't exist. |
public setTableVersion ( string $name, integer $version ) | ||
$name | string | Table name. |
$version | integer | Table version. |
public string $prefix | ||
Résultat | string |