Get underlying redis
This commit is contained in:
parent
0ffb7ef8d4
commit
aeea9b5fa1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue