Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCaching ¶
AddCaching adds caching to the Session
func IsCacheHit ¶
IsCacheHit returns true if the context was used for a cached API request
Types ¶
type Config ¶
type Config struct { DefaultTTL time.Duration sync.RWMutex // contains filtered or unexported fields }
func (*Config) FlushCache ¶
FlushCache flushes all caches for a service
func (*Config) NewCacheCollector ¶
func (c *Config) NewCacheCollector(namespace string) prometheus.Collector
Click to show internal directories.
Click to hide internal directories.