Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 检查是否过期
66
func
(e *CacheEntry) IsExpired() bool {
67
return
time.Now().After(e.ExpiresAt)
68
}
69
70
// ToolCache 工具缓存
71
type
ToolCache
struct
{
Callers
4
getFromFile
Method · 0.95
cleanupFiles
Method · 0.95
getFromMemory
Method · 0.80
cleanupMemory
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected