aellopus/client
Composer 安装命令:
composer require aellopus/client
包简介
Official Aellopus client for PHP — a synchronous, zero-dependency AWP/1 client.
README 文档
README
Official, synchronous, zero-dependency PHP client for Aellopus over the AWP/1 wire protocol.
Stable. See
CHANGELOG.mdfor release notes.
Requirements
- PHP
^8.2(64-bit)
Install
composer require aellopus/client
Usage
use Aellopus\Client\Client; use Aellopus\Client\Exception\NotFoundError; $client = Client::connect('127.0.0.1:6969'); // timeoutMs defaults to 5000 $client->set('user:1', 'John'); echo $client->get('user:1'); // "John" try { $client->get('absent'); } catch (NotFoundError) { // a miss is distinct from an empty value } $client->set('counter', '0'); $client->incr('counter'); // 1 // Lazily walk the keyspace: foreach ($client->scan('user:*') as $key) { echo $key, PHP_EOL; } $client->close();
Values are raw bytes — they may contain CR, LF, or NUL and round-trip byte-exact.
An empty string "" is a stored value (a hit), never a miss.
License
Apache-2.0
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-06-26