mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-22 03:37:32 +00:00
fix: use a cache file name with a fixed size. (#350)
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
This commit is contained in:
8
pkg/cache/file_based.go
vendored
8
pkg/cache/file_based.go
vendored
@@ -11,7 +11,13 @@ import (
|
||||
|
||||
var _ (ICache) = (*FileBasedCache)(nil)
|
||||
|
||||
type FileBasedCache struct{}
|
||||
type FileBasedCache struct {
|
||||
noCache bool
|
||||
}
|
||||
|
||||
func (f *FileBasedCache) IsCacheDisabled() bool {
|
||||
return f.noCache
|
||||
}
|
||||
|
||||
func (*FileBasedCache) Exists(key string) bool {
|
||||
path, err := xdg.CacheFile(filepath.Join("k8sgpt", key))
|
||||
|
Reference in New Issue
Block a user