package imgcache import ( "context" "path/filepath" "sneak.berlin/go/pixa/internal/config" ) // computeDefaultMaxBytes returns the default cache size limit for an // omitted cache_max_bytes, for the filesystem holding /cache/. func (c *Cache) computeDefaultMaxBytes( _ context.Context, probe config.FreeSpaceProbeFunc, ) (int64, error) { return config.ComputeDefaultCacheMaxBytes( filepath.Join(c.config.StateDir, "cache"), probe) }