Browse Source

Set value on cache miss

pull/1821/head
Gabe Kangas 3 years ago
parent
commit
b6d575a286
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