HttpProtect.destroy() method
Disconnects the Redis client and drops it.
Signature:
destroy(): void;
Returns:
void
Remarks
Disconnects whichever client this instance holds — including one passed in as HttpProtectOptions.redis, which the rest of your application may still be using. Share a client only if you also control who shuts it down.
Counters and bans are unaffected: they live in Redis and outlive the instance. Afterwards HttpProtect.verify() throws for any non-exempt address until HttpProtect.connect() is called again.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.