feat: cache + paths #1
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) {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue