FunctionCache provides a cache of Function replica counts
| 18 | |
| 19 | // FunctionCache provides a cache of Function replica counts |
| 20 | type FunctionCache struct { |
| 21 | Cache map[string]*FunctionMeta |
| 22 | Expiry time.Duration |
| 23 | Sync sync.RWMutex |
| 24 | } |
| 25 | |
| 26 | // NewFunctionCache creates a function cache to query function metadata |
| 27 | func NewFunctionCache(cacheExpiry time.Duration) FunctionCacher { |
nothing calls this directly
no outgoing calls
no test coverage detected