kuaukutsu/poc-queue-redis

Proof of Concept: Task Queue by Redis

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/kuaukutsu/poc-queue-redis

0.2.1 2026-01-04 11:55 UTC

This package is auto-updated.

Last update: 2026-01-04 11:56:25 UTC


README

PHP Version Require Latest Stable Version License Psalm Level Psalm Type Coverage

Очередь: Redis / ValKey

Драйвер для работы: amphp/redis, this package provides non-blocking access to Redis instances.

Дополнительно: support for interceptors, which can be used to add functionality to the application without modifying the core code of the application.

Installation

composer require kuaukutsu/poc-queue-redis

Benchmark (with igbinary)

PHPBench (1.4.1) running benchmarks...
with configuration file: /benchmark/phpbench.json
with PHP version 8.3.22, xdebug ✔, opcache ✔

\kuaukutsu\poc\queue\redis\benchmarks\PublisherRedisBench

    benchAsWhile............................I4 - Mo27.183ms (±1.60%)
    benchAsBatch............................I4 - Mo5.440ms (±3.44%)

\kuaukutsu\poc\queue\redis\benchmarks\PublisherValkeyBench

    benchAsWhile............................I4 - Mo27.844ms (±3.44%)
    benchAsBatch............................I4 - Mo5.479ms (±2.18%)

Subjects: 4, Assertions: 0, Failures: 0, Errors: 0
+----------------------+--------------+-----+------+-----+----------+----------+--------+
| benchmark            | subject      | set | revs | its | mem_peak | mode     | rstdev |
+----------------------+--------------+-----+------+-----+----------+----------+--------+
| PublisherRedisBench  | benchAsWhile |     | 10   | 5   | 1.980mb  | 27.183ms | ±1.60% |
| PublisherRedisBench  | benchAsBatch |     | 10   | 5   | 2.214mb  | 5.440ms  | ±3.44% |
| PublisherValkeyBench | benchAsWhile |     | 10   | 5   | 1.980mb  | 27.844ms | ±3.44% |
| PublisherValkeyBench | benchAsBatch |     | 10   | 5   | 2.214mb  | 5.479ms  | ±2.18% |
+----------------------+--------------+-----+------+-----+----------+----------+--------+