redis.set("key", "Hello World")

assert redis.getrange("key", 0, 4) == "Hello"

Arguments

key
str
required

The key to get.

start
int
required

The start index of the substring.

end
int
required

The end index of the substring.

Response

The substring.