---
title: InsertConfig
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/struct.InsertConfig/
---

**Kind:** Struct  
**Module:** [kvstore](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/kvstore/kvstore.go#L153

```go
type InsertConfig struct {
	Mode              InsertMode
	BackgroundFetch   bool
	Metadata          []byte
	TTLSec            uint32
	IfGenerationMatch uint64
}
```

## Fields

### Mode

**Type:** `InsertMode`

### BackgroundFetch

**Type:** `bool`

### Metadata

**Type:** `[]byte`

### TTLSec

**Type:** `uint32`

### IfGenerationMatch

**Type:** `uint64`
