amp-zookeeper:适用于amphp的Zookeeper客户端

时间:2024-04-24 09:36:10
【文件属性】:

文件名称:amp-zookeeper:适用于amphp的Zookeeper客户端

文件大小:22KB

文件格式:ZIP

更新时间:2024-04-24 09:36:10

PHP

蠢事了客户端 安装 composer require vajexal/amp-zookeeper:dev-master 用法 <?php declare (strict_types= 1 ); use Amp \ Loop ; use Vajexal \ AmpZookeeper \ Zookeeper ; use Vajexal \ AmpZookeeper \ ZookeeperConfig ; require_once 'vendor/autoload.php' ; Loop :: run ( function () { /** @var Zookeeper $zk */ $ zk = yield Zookeeper :: connect ( new ZookeeperConfig ); yield $ zk -> create ( '/foo' , 'bar


【文件预览】:
amp-zookeeper-master
----composer.json(770B)
----readme.md(902B)
----.github()
--------workflows()
----src()
--------PathUtils.php(2KB)
--------Ids.php(821B)
--------ZookeeperConfig.php(1KB)
--------Packet.php(2KB)
--------Record.php(202B)
--------Proto()
--------ByteBuffer.php(4KB)
--------OpCode.php(2KB)
--------Perms.php(352B)
--------Zookeeper.php(9KB)
--------Exception()
--------Data()
----docker-compose.yml(89B)
----UNLICENSE(1KB)

网友评论