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));