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

The **`staleWhileRevalidate`** method of the `TransactionCacheEntry` interface returns the time in milliseconds for which a cached item can safely be used despite being considered stale.

## Syntax

```js
staleWhileRevalidate()
```

### Parameters

None.

### Return value

A `number` which represents the time in milliseconds for which a cached item can safely be used despite being considered stale.