From aeea9b5fa1e6d2217e544e5fc82f417d233f0b85 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Mon, 7 Dec 2020 13:34:24 +0100 Subject: [PATCH] Get underlying redis --- src/Redis/Lua/AbstractLuaExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Redis/Lua/AbstractLuaExtension.php b/src/Redis/Lua/AbstractLuaExtension.php index 5f61d10..c052252 100644 --- a/src/Redis/Lua/AbstractLuaExtension.php +++ b/src/Redis/Lua/AbstractLuaExtension.php @@ -31,9 +31,9 @@ abstract class AbstractLuaExtension public function load(): void { if (!$this->hash) { - $exists = $this->getUnderlyingRedis()->script('exists', $this->getScript()); + $exists = $this->redis->getUnderlyingRedis()->script('exists', $this->getScript()); if (!$exists[0]) { - $this->hash = $this->getUnderlyingRedis()->script('load', $this->getScript()); + $this->hash = $this->redis->getUnderlyingRedis()->script('load', $this->getScript()); } } //printf("Loaded \"%s\" as \"%s\"\n", $this->getFunctionNames()[0], $this->hash);