MCPcopy Create free account
hub / github.com/astercloud/aster / DefaultCacheConfig

Function DefaultCacheConfig

pkg/tools/cache.go:45–54  ·  view source on GitHub ↗

DefaultCacheConfig 默认缓存配置

()

Source from the content-addressed store, hash-verified

43
44// DefaultCacheConfig 默认缓存配置
45func DefaultCacheConfig() *CacheConfig {
46 return &CacheConfig{
47 Enabled: false,
48 Strategy: CacheStrategyMemory,
49 TTL: 1 * time.Hour,
50 CacheDir: ".cache/tools",
51 MaxMemoryItems: 1000,
52 MaxFileSize: 10 * 1024 * 1024, // 10MB
53 }
54}
55
56// CacheEntry 缓存条目
57type CacheEntry struct {

Callers 2

NewToolCacheFunction · 0.85

Calls

no outgoing calls

Tested by 1