Browse Source

Set value on cache miss

gek/load-tests
Gabe Kangas 4 years ago
parent
commit
0b114f89e8
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 1
      core/data/persistence.go

1
core/data/persistence.go

@ -67,6 +67,7 @@ func (ds *Datastore) Get(key string) (ConfigEntry, error) { @@ -67,6 +67,7 @@ func (ds *Datastore) Get(key string) (ConfigEntry, error) {
Key: resultKey,
Value: resultValue,
}
ds.SetCachedValue(resultKey, resultValue)
return result, nil
}

Loading…
Cancel
Save