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

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

Constructs a new instance of the `TagCache` class

**Signature:**

```typescript
constructor(
    cache?: RedisCache | undefined);
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| cache | RedisCache \| undefined | _(Optional)_ initialised `RedisCache` to borrow the connection, key prefix and logger from. `RedisCache.init()` must already have been awaited: this reads the connection immediately rather than lazily, so an uninitialised cache leaves every operation throwing [REDIS\_INIT\_ERROR](https://imqueue.org/api/tag-cache/latest/tag-cache.redis_init_error/). |

