method RedisStore.prototype.isHealthy
Since 0.5.0
RedisStore.prototype.isHealthy(): Promise<boolean>

Probes Redis with a typed ping() (M90b). false after disconnect — a store with no client cannot answer — and otherwise true only when the server answers, a rejection being unreachability.

The plugin caches and bounds this probe; this method is the raw per-call question.

Return Type

Promise<boolean>

true when Redis answers ping

Usage

import { RedisStore } from "cache-plugin/src/index.ts";