HttpProtectOptions.redis property
An existing ioredis client to use instead of opening another connection.
Signature:
redis?: Redis;
Remarks
Pass this if your application already has a client. Supplying it also prevents the constructor from connecting on its own, which is the only way to construct a HttpProtect without immediately opening a socket. Note that HttpProtect.destroy() disconnects whichever client it is holding, including one passed in here.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.