Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions kvstore/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ const (
)

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

// Insert adds a key to the associated KV store.
Expand All @@ -171,6 +172,9 @@ func (s *Store) InsertWithConfig(key string, value io.Reader, config *InsertConf
if config.TTLSec != 0 {
abiConf.TTLSec(config.TTLSec)
}
if config.IfGenerationMatch != 0 {
abiConf.IfGenerationMatch(config.IfGenerationMatch)
}
}

var body *fastly.HTTPBody
Expand Down