bagart / ask-client-redis
Fully asynchronous Redis client library built on top of BAGArt/AsyncKernel. Fiber-based, promise-driven, transport-agnostic inside ASK ecosystem.
dev-main
2026-07-21 08:20 UTC
Requires
- php: >=8.2
- ext-redis: *
- bagart/ask-client: *
- bagart/async-kernel: *
Requires (Dev)
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^11.0
This package is not auto-updated.
Last update: 2026-07-23 17:18:26 UTC
README
Redis client library for the Async Kernel stack.
Provides two parallel client paths:
- Async —
ASKRedisClientsends commands through the ASK pipeline (Operation DTOs → ASKClient → Transport → TCP socket with RESP protocol) - Sync —
PhpRedisAdapterwraps the phpredis extension directly viaRedisClientContract
Infrastructure classes (cache, lockers, queue, job state) use the sync path and implement contracts from bagart/async-kernel and bagart/ask-client.
Requirements
- PHP 8.2+
ext-redis(phpredis)
Installation
composer require bagart/ask-client-redis
Depends on bagart/async-kernel and bagart/ask-client.
Architecture
Async path: ASKRedisClient → Operation DTO → ASKClient → Middleware → Pipeline → ASKRedisTransport → Redis
Sync path: PhpRedisClient → phpredis extension → Redis
See agent.md for full architectural context.