# makeChannel() function · @imqueue/pg-cache

Source: https://imqueue.org/api/pg-cache/latest/pg-cache.makechannel/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-cache 5.0.6 — generated reference, not hand-written

Makes channel entry from a given channel name, class method name and options.

**Signature:**

```typescript
export declare function makeChannel(name: string, method: string, options: CacheWithOptions): PgCacheChannel;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| name | string | notification channel, i.e. the watched table name |
| method | string | decorated method to invalidate when that channel fires |
| options | [CacheWithOptions](https://imqueue.org/api/pg-cache/latest/pg-cache.cachewithoptions/) | which channels invalidate the result, its TTL and cache tag decorator options; only the per-channel filter is read here |


**Returns:**

[PgCacheChannel](https://imqueue.org/api/pg-cache/latest/pg-cache.pgcachechannel/)

