Mstrlen
Bun

method

RedisClient.strlen

key: KeyLike
): Promise<number>;

Get the length of the value stored in a key

@param key

The key to check

@returns

Promise that resolves with the length of the string value, or 0 if the key doesn't exist

Referenced types

type KeyLike = string | ArrayBufferView | Blob