Versions in this module Expand all Collapse all v1 v1.0.2 Jan 23, 2026 v1.0.1 Jan 23, 2026 Changes in this version + func FormatSize(bytes int64) string + type CacheEntry struct + CacheKey string + CachedAt time.Time + SizeBytes int64 + SourceFiles []string + Tables []string + TotalRows int64 + type CacheHandler struct + func NewCacheHandler(cacheDir string, enabled bool) (*CacheHandler, error) + func (h *CacheHandler) ClearCache() error + func (h *CacheHandler) ClearCacheEntry(cacheKey string) error + func (h *CacheHandler) GenerateCacheKey(files []string) (string, error) + func (h *CacheHandler) GetCacheDir() string + func (h *CacheHandler) GetCachePath(cacheKey string) string + func (h *CacheHandler) GetCacheStats() (int, int64, error) + func (h *CacheHandler) GetMetadataPath(cacheKey string) string + func (h *CacheHandler) IsCacheValid(files []string) (bool, string, error) + func (h *CacheHandler) IsEnabled() bool + func (h *CacheHandler) ListCache() ([]CacheEntry, error) + func (h *CacheHandler) ReadMetadata(cacheKey string) (*CacheMetadata, error) + func (h *CacheHandler) SaveMetadata(cacheKey string, files []string, tables []string, totalRows int64) error + type CacheMetadata struct + CacheFile string + CachedAt time.Time + FileHash string + FormatVersion int + ModTimes []int64 + SourceFiles []string + Tables []string + TotalRows int64