From 936322a8aad1c98914bbbee27c37976e0167e07e Mon Sep 17 00:00:00 2001 From: if1live Date: Sun, 1 Oct 2023 00:12:16 +0900 Subject: [PATCH] =?UTF-8?q?redislab=EC=9D=B4=20hello=EB=A5=BC=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=ED=95=98=EC=A7=80=20=EC=95=8A=EC=95=84=EC=84=9C=20inf?= =?UTF-8?q?o=EB=A1=9C=20=EB=A0=88=EB=94=94=EC=8A=A4=20=EB=B2=84=EC=A0=84?= =?UTF-8?q?=20=EC=9C=A0=EB=8F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/providers.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/providers.ts b/src/providers.ts index 474f919..0ff0258 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -94,8 +94,12 @@ const touchRedisNaive = async (input: RedisNativeInput): Promise => { const redis = new Redis(options); await redis.connect(); - const tokens = await redis.hello(); - const version = tokens[3]; + // redislab은 hello를 구현하지 않은듯 + // {"name":"gE","message":"ERR unknown command 'hello'"} + const text = await redis.info(); + const lines = text.split("\r\n"); + const line_version = lines.find((line) => line.startsWith("redis_version:")); + const version = line_version?.split(":")[1]; redis.disconnect(false);