---
url: https://docs.moqtail.dev/ts/api/model/classes/MaxCacheDurationProperty.md
---
# Class: MaxCacheDurationProperty

## Constructors

### Constructor

> **new MaxCacheDurationProperty**(`durationMs`): `MaxCacheDurationProperty`

#### Parameters

##### durationMs

`bigint`

#### Returns

`MaxCacheDurationProperty`

## Properties

### durationMs

> `readonly` **durationMs**: `bigint`

***

### TYPE

> `readonly` `static` **TYPE**: [`MaxCacheDuration`](../enumerations/TrackPropertyType.md#maxcacheduration) = `TrackPropertyType.MaxCacheDuration`

## Methods

### toKeyValuePair()

> **toKeyValuePair**(): [`KeyValuePair`](KeyValuePair.md)

#### Returns

[`KeyValuePair`](KeyValuePair.md)

***

### fromKeyValuePair()

> `static` **fromKeyValuePair**(`pair`): `MaxCacheDurationProperty` | `undefined`

#### Parameters

##### pair

[`KeyValuePair`](KeyValuePair.md)

#### Returns

`MaxCacheDurationProperty` | `undefined`
