Set value on cache miss

This commit is contained in:
Gabe Kangas 2022-04-30 16:06:00 -07:00
parent 8c6d84575e
commit 0b114f89e8
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

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