amphp / redis
Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.
Fund package maintenance!
amphp
Installs: 338 913
Dependents: 33
Suggesters: 6
Security: 0
Stars: 157
Watchers: 12
Forks: 31
Open Issues: 11
Requires
- php: >=8.1
- amphp/amp: ^3
- amphp/byte-stream: ^2
- amphp/cache: ^2
- amphp/parser: ^1
- amphp/pipeline: ^1
- amphp/serialization: ^1
- amphp/socket: ^2
- amphp/sync: ^2
- league/uri: ^6.5|^7
- psr/log: ^1|^2|^3
- revolt/event-loop: ^1
Requires (Dev)
- amphp/php-cs-fixer-config: ^2
- amphp/phpunit-util: ^3
- amphp/process: ^2
- phpunit/phpunit: ^9
- psalm/phar: 5.22
- 2.x-dev
- v2.0.1
- v2.0.0
- v2.0.0-beta.3
- v2.0.0-beta.2
- v2.0.0-beta.1
- 1.x-dev
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-rc2
- v1.0.0-rc1
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- 0.2.x-dev
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-2.x-cluster
- dev-cluster
This package is auto-updated.
Last update: 2024-11-03 19:23:50 UTC
README
AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. This package provides non-blocking access to Redis instances. All I/O operations are handled by Revolt event loop, so you should be familiar with the basics of it.
Installation
This package can be installed as a Composer dependency.
composer require amphp/redis
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use function Amp\Redis\createRedisClient; $redis = createRedisClient('redis://'); $redis->set('foo', '21'); $result = $redis->increment('foo', 21); \var_dump($result); // int(42)
Security
If you discover any security related issues, please use the private security issue reporter instead of using the public issue tracker.
License
The MIT License (MIT). Please see LICENSE
for more information.