# TagCache.destroy() method · @imqueue/tag-cache

Source: https://imqueue.org/api/tag-cache/latest/tag-cache.tagcache.destroy/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/tag-cache 3.0.3 — generated reference, not hand-written

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](https://imqueue.org/api/tag-cache/latest/tag-cache.redis_init_error/).

**Signature:**

```typescript
destroy(): Promise<void>;
```
**Returns:**

Promise<void>

once the shared redis connection has been closed

