fix: file cache get
This commit is contained in:
parent
597feb7b54
commit
f5af7ffcbc
1 changed files with 1 additions and 1 deletions
2
cache/file.go
vendored
2
cache/file.go
vendored
|
@ -20,7 +20,7 @@ type FileCache struct {
|
||||||
func (c *FileCache) Get(key string) (result any, err error) {
|
func (c *FileCache) Get(key string) (result any, err error) {
|
||||||
path := c.getPathForItem(key)
|
path := c.getPathForItem(key)
|
||||||
|
|
||||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
if _, err := os.Stat(path + ".metadata"); os.IsNotExist(err) {
|
||||||
return result, model.ErrCacheKeyDontExist
|
return result, model.ErrCacheKeyDontExist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue