Versions in this module Expand all Collapse all v3 v3.7.1 Mar 17, 2026 Changes in this version + const DefaultMaxHostsCount + type Cache struct + MaxHostError int + TrackError []string + func New(maxHostError, maxHostsCount int, trackError []string) *Cache + func (c *Cache) Check(protoType string, ctx *contextargs.Context) bool + func (c *Cache) Close() + func (c *Cache) GetKeyFromContext(ctx *contextargs.Context, err error) string + func (c *Cache) IsPermanentErr(ctx *contextargs.Context, err error) bool + func (c *Cache) MarkFailed(protoType string, ctx *contextargs.Context, err error) + func (c *Cache) MarkFailedOrRemove(protoType string, ctx *contextargs.Context, err error) + func (c *Cache) NormalizeCacheValue(value string) string + func (c *Cache) Remove(ctx *contextargs.Context) + func (c *Cache) SetVerbose(verbose bool) + type CacheInterface interface + Check func(protoType string, ctx *contextargs.Context) bool + Close func() + IsPermanentErr func(ctx *contextargs.Context, err error) bool + MarkFailed func(protoType string, ctx *contextargs.Context, err error) + MarkFailedOrRemove func(protoType string, ctx *contextargs.Context, err error) + Remove func(ctx *contextargs.Context) + SetVerbose func(verbose bool)