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

Method IsExpired

pkg/tools/cache.go:66–68  ·  view source on GitHub ↗

IsExpired 检查是否过期

()

Source from the content-addressed store, hash-verified

64
65// IsExpired 检查是否过期
66func (e *CacheEntry) IsExpired() bool {
67 return time.Now().After(e.ExpiresAt)
68}
69
70// ToolCache 工具缓存
71type ToolCache struct {

Callers 4

getFromFileMethod · 0.95
cleanupFilesMethod · 0.95
getFromMemoryMethod · 0.80
cleanupMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected