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

Function newSchemaCache

pkg/tools/bridge/http_server.go:29–35  ·  view source on GitHub ↗
(ttl time.Duration)

Source from the content-addressed store, hash-verified

27}
28
29func newSchemaCache(ttl time.Duration) *schemaCache {
30 return &schemaCache{
31 schemas: make(map[string]any),
32 entries: make(map[string]*cacheEntry),
33 ttl: ttl,
34 }
35}
36
37func (c *schemaCache) get(key string) (any, bool) {
38 c.mu.RLock()

Callers 1

NewHTTPBridgeServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected