ping
Check if the Redis server is reachable.
Signature
declare function ping(
): Promise<boolean>;Returns
true if the server responded with PONG, false otherwise (including when the client is disabled or the connection fails).
Examples
import { sdk } from '~/sdk';
const isAvailable = await sdk.redis.ping();