---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# TransactionCacheEntry.maxAge

The **`maxAge`** method of the `TransactionCacheEntry` interface returns the time in milliseconds for which the cached item is considered fresh.

## Syntax

```js
maxAge()
```

### Parameters

None.

### Return value

A `number` which represents the time in milliseconds for which the cached item is considered fresh.