diff --git a/fs/s3_adapter.go b/fs/s3_adapter.go index 67a4e83..85a3740 100644 --- a/fs/s3_adapter.go +++ b/fs/s3_adapter.go @@ -171,7 +171,7 @@ func (s *S3Adapter) GetFileList(ctx context.Context, dirPath string, relDt time. cacheItem := cacheItem{ data: fileList, - expires: time.Now().Add(10 * time.Second), + expires: time.Now().Add(30 * time.Second), } s3Cache.Store(cacheKey, cacheItem) log.Println("缓存文件列表", cacheKey)