Documentation
¶
Overview ¶
Cache is a simple cache, which is used to store whether functions have been invoked yet. This reduces the amount of API calls and cost in the metrics functions. The cache gets deleted as soon as the process is killed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
The actual cache implementation, thread safety is guaranteed via a mutex. The cache stores the String() of a CacheKey and the amount of invocations.
func (*Cache) Get ¶
Get returns the invocation count for the key and a bool indicating if it was found.
Click to show internal directories.
Click to hide internal directories.