Msetrange
Bun

method

RedisClient.setrange

key: KeyLike,
offset: number,
value: KeyLike
): Promise<number>;

Overwrite part of a string at key starting at the specified offset

@param key

The key to modify

@param offset

The offset at which to start overwriting (zero-based)

@param value

The string value to write at the offset

@returns

Promise that resolves with the length of the string after modification

Referenced types

type KeyLike = string | ArrayBufferView | Blob