프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$driver | string | Our database driver. | |
$pdo | PDO | The PDO object for our database. | |
$prefix | string | The prefix we should use for our tables. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Initialize the SQL data store. |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |