sahithvibudhi / php-lazal
PHP Lazal 客户端
dev-master
2018-07-17 08:03 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2024-09-19 11:39:53 UTC
README
这是官方的 Lazal PHP 客户端。
安装
composer require sahithvibudhi/php-lazal
如何使用
连接到 Lazal 服务器
$client = new Lazal\Client(['host'=>'127.0.0.1', 'port' => 5555]);
写入数据
$client->set('key1', 'value');
获取数据
$value = $client->get('key1');
删除数据
$client->delete('key1');