mirror of
https://github.com/rancher/os.git
synced 2025-09-06 01:01:43 +00:00
Support service cache update
This commit is contained in:
@@ -43,3 +43,8 @@ func cacheAdd(location string, data []byte) {
|
||||
cacheFile := cacheDirectory + locationHash(location)
|
||||
os.Rename(tempFile.Name(), cacheFile)
|
||||
}
|
||||
|
||||
func cacheRemove(location string) error {
|
||||
cacheFile := cacheDirectory + locationHash(location)
|
||||
return os.Remove(cacheFile)
|
||||
}
|
||||
|
Reference in New Issue
Block a user