Redis
Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.
Install / Use
/learn @amphp/RedisREADME
redis
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.
Related Skills
node-connect
335.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.5kCommit, push, and open a PR
