From 06fb326caae6db2247e65725f07b47cbe691668e Mon Sep 17 00:00:00 2001 From: WitoldAtSmartframe <75019610+WitoldAtSmartframe@users.noreply.github.com> Date: Tue, 9 Mar 2021 14:14:58 +0100 Subject: [PATCH] Align with internal Redis wrapper --- src/M6Web/Component/RedisMock/RedisMock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/M6Web/Component/RedisMock/RedisMock.php b/src/M6Web/Component/RedisMock/RedisMock.php index 2019754..42d25b7 100644 --- a/src/M6Web/Component/RedisMock/RedisMock.php +++ b/src/M6Web/Component/RedisMock/RedisMock.php @@ -77,7 +77,7 @@ public function get($key) return $this->returnPipedInfo(self::$dataValues[$this->storage][$key]); } - public function set($key, $value, $seconds = null) + public function set($key, $value, $seconds = null): bool { if (\is_array($seconds)) { /** @@ -109,7 +109,7 @@ public function set($key, $value, $seconds = null) self::$dataTtl[$this->storage][$key] = time() + $seconds; } - return $this->returnPipedInfo('OK'); + return true; } //mset/mget (built on set and get above)