---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# CacheState.mustInsertOrUpdate

The **`mustInsertOrUpdate`** method of the `CacheState` interface returns `true` if a fresh cache item was not found, and this transaction client is expected to insert a new item or update a stale item.


## Syntax

```js
mustInsertOrUpdate()
```

### Parameters

None.

### Return value

A `boolean` which represents whether a fresh cached item was found not.
