Mping
Bun

method

RedisClient.ping

ping(): Promise<'PONG'>;

Ping the server

@returns

Promise that resolves with "PONG" if the server is reachable, or throws an error if the server is not reachable

message: KeyLike
): Promise<string>;

Ping the server with a message

@param message

The message to send to the server

@returns

Promise that resolves with the message if the server is reachable, or throws an error if the server is not reachable

Referenced types

type KeyLike = string | ArrayBufferView | Blob