mgleis/php-sqlite-key-value-store
最新稳定版本:1.0.1
Composer 安装命令:
composer require mgleis/php-sqlite-key-value-store
包简介
A PHP library that implements a key/value store with SQLite as the persistence layer.
README 文档
README
A PHP library that implements a key/value store with SQLite as the persistence layer.
Use it for small projects / prototypes with at most hundreds or thousands of values.
Install
composer require mgleis/php-sqlite-key-value-store
Usage
$kv = new KeyValueStore();
Set a Key
$kv->set('key', 'value');
Get a Value by Key
$value = $kv->get('key');
Check if a key exists
$exists = $kv->has('key');
Delete by Key
$kv->delete('key');
Search by Value
$arr = $kv->searchValueStartsWith('text');
$arr = $kv->searchValueContains('text');
Search by Key
$arr = $kv->searchKeyStartsWith('text');
$arr = $kv->searchKeyContains('text');
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-12-04