const substring = await redis.getrange("key", 2, 4);

Arguments

key
string
required

The key to get.

start
integer
required

The start index of the substring.

end
integer
required

The end index of the substring.

Response

The substring.

const substring = await redis.getrange("key", 2, 4);