TagCache.destroy() method
Destroys this cache instance
Note the connection is owned by RedisCache and shared, so this closes it for **every** consumer, not just this instance — including other TagCache objects built from the same cache. Treat it as application shutdown rather than as releasing one instance.
Afterwards this instance keeps no redis reference, so every operation on it throws a TypeError carrying REDIS_INIT_ERROR.
Signature:
destroy(): Promise<void>;
Returns:
Promise<void>
once the shared redis connection has been closed
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.