Mgetrange
Bun

method

RedisClient.getrange

key: KeyLike,
start: number,
end: number
): Promise<string>;

Get a substring of the string stored at a key

@param key

The key to get the substring from

@param start

The starting offset (can be negative to count from the end)

@param end

The ending offset (can be negative to count from the end)

@returns

Promise that resolves with the substring, or an empty string if the key doesn't exist

Referenced types

type KeyLike = string | ArrayBufferView | Blob