diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/api/cache.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/cache.go b/internal/api/cache.go index 2baefc8..4777334 100644 --- a/internal/api/cache.go +++ b/internal/api/cache.go @@ -52,6 +52,8 @@ var ( epCacheOnce sync.Once ) +// GetEndpointCache returns the global singleton endpoint cache +// or creates one if it does not exist func GetEndpointCache() *EndpointCache { epCacheOnce.Do(func() { epCache = &EndpointCache{ |
