定制 aellopus/client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.md for 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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固