Lista de Classes
- App\Middleware\Cors
- App\Middleware\Auth
- App\Middleware\Env
- AppMin
- Application
- Route
- Data\Database
- Data\Db2Database
- Data\OdbcDatabase
- Data\Validator
- Data\KeyValue\SqliteStorage
- Data\Log\FileLogger
- Data\Log\HtmlLogger
- Encoding\Base64Url
- Encoding\Json
- Encoding\Utf8
- Environment\DotEnv
- Environment\System
- FileSystem\Search
- FileSystem\Security
- FileSystem\Sync
- Lang\I18N
- Lang\L10N
- Lang\Time
- Media\Image
- Net\Config
- Net\Email
- Net\HttpClient
- Net\HttpResponse
- Net\IP
- Net\SmtpClient
- Security\Crypto
- Security\Password
- Security\Crypto\Encryption
- Security\Crypto\FileEncryption
- Security\Crypto\JWT
- Security\Crypto\PublicKey
- Security\Crypto\Random
- Security\Crypto\SignedData
- Security\Web\CsrfSession
- Security\Web\CsrfStateless
- Security\Web\RateLimit
- Web\Request
- Web\Response
FastSitePHP\Data\KeyValue\SqliteStorage
Store Key-Value Pairs in a SQLite Database.
This class uses the [FastSitePHP\Data\KeyValue\StorageInterface] class interface.
Código Fonte
Métodos
__construct($file_path)
Class Constructor
Specify a path for the SQLite Database. The database file will be created if it does not exist and the table [key_value_pairs] will be added.
get($key, $default_value = null)
Get a saved value with an optional default value if it doesn't exist or is null.
Retorna: string
set($key, $value)
Set a value for a named key.
Retorna: string
exists($key)
Check if a key exists in the database.
Retorna: bool
remove($key)
Remove (delete) a key exists from the database.