From 20d4050869c0da92d5a6d8c6894595f1b8d42701 Mon Sep 17 00:00:00 2001 From: auooru Date: Fri, 29 Mar 2024 14:38:20 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=E8=B0=83=E6=95=B4=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/components/redis/index.md | 8 -------- src/Components/redis/tests/Tests/PhpRedisTest.php | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/components/redis/index.md b/doc/components/redis/index.md index b7c11486b..4b42a5ba6 100644 --- a/doc/components/redis/index.md +++ b/doc/components/redis/index.md @@ -153,11 +153,3 @@ return [ | user:{1000}:roles | 1000 | | foo{}{bar} | foo{}{bar} | | foo{bar}{zap} | bar | - -## TODO - -- [ ] 支持资源URL 'tcp://192.168.0.222?timeout=60&db=1;tcp://192.168.0.222', 'unix:///var/run/redis/redis-server.sock?db=1' -- [ ] 支持 ACL 鉴权 -- [ ] Sentinel 模式实现 -- [ ] 完善的传参验证 -- [ ] 多客户端测试(swoole, queue, amqp, rate-limit) diff --git a/src/Components/redis/tests/Tests/PhpRedisTest.php b/src/Components/redis/tests/Tests/PhpRedisTest.php index 959b68b62..5eed9e5a9 100644 --- a/src/Components/redis/tests/Tests/PhpRedisTest.php +++ b/src/Components/redis/tests/Tests/PhpRedisTest.php @@ -168,6 +168,10 @@ public function testEvalScriptClass(IRedisHandler $redis): void #[Depends('testGetDrive')] public function testEvalScriptReadOnly(IRedisHandler $redis): void { + if (version_compare($redis->getServerVersion(), '7.0', '<')) { + $this->markTestSkipped(sprintf('Redis version %s does not support read-only script', $redis->getServerVersion())); + } + $this->flushLuaScript($redis); $unique = bin2hex(random_bytes(16));