# KeyedRateLimitTableOptions

Defined in: [packages/rate-limit/src/keyed-table.ts:58](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/rate-limit/src/keyed-table.ts#L58)

The options a keyed table needs to bound itself and to build one meter per key.

## Properties

### maxKeyCount

> `readonly` **maxKeyCount**: `number`

Defined in: [packages/rate-limit/src/keyed-table.ts:63](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/rate-limit/src/keyed-table.ts#L63)

The most keys the table holds meters for. A positive safe integer. It bounds the table’s memory; it is not a limit on traffic.

***

### meter

> `readonly` **meter**: [`RateMeterFactory`](/reference/knotkit/rate-limit/type-aliases/ratemeterfactory/)

Defined in: [packages/rate-limit/src/keyed-table.ts:69](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/rate-limit/src/keyed-table.ts#L69)

Build one meter for one key. The table calls it with its own clamped reading, so every meter it holds shares one highest reading, and with a built-in factory the meter clamps it again to no effect.

***

### clock

> `readonly` **clock**: [`Clock`](/reference/knotkit/cache/type-aliases/clock/)

Defined in: [packages/rate-limit/src/keyed-table.ts:71](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/rate-limit/src/keyed-table.ts#L71)

The time source every meter reads through. The table clamps it once, for all of them.

***

### whenFull

> `readonly` **whenFull**: `"refuse"` | `"allow-untracked"`

Defined in: [packages/rate-limit/src/keyed-table.ts:77](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/rate-limit/src/keyed-table.ts#L77)

What a request from a key the table cannot hold gets: `refuse`, or `allow-untracked`. Required, because neither answer is safe for every server.
