(ttl time.Duration)
| 27 | } |
| 28 | |
| 29 | func 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 | |
| 37 | func (c *schemaCache) get(key string) (any, bool) { |
| 38 | c.mu.RLock() |
no outgoing calls
no test coverage detected