HttpProtectOptions.redisOptions property

ioredis connection options, used only when HttpProtectOptions.redis is not given.

Signature:

redisOptions?: RedisOptions;

Remarks

Omitting both means the constructor connects to localhost:6379. There is no lazy mode: the connection is opened by the constructor, so a HttpProtect built in a process with no Redis reachable will emit ioredis connection errors on its own client rather than failing to construct.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.