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)