package cache
import "github.com/uber-go/tally/internal/cache"
Index ¶
Functions ¶
func TagMapKey ¶
TagMapKey generates a new key based on tags.
Types ¶
type StringInterner ¶
type StringInterner struct {
// contains filtered or unexported fields
}
StringInterner interns strings.
func NewStringInterner ¶
func NewStringInterner() *StringInterner
NewStringInterner creates a new StringInterner.
func (*StringInterner) Intern ¶
func (i *StringInterner) Intern(s string) string
Intern interns s.
type TagCache ¶
type TagCache struct {
// contains filtered or unexported fields
}
TagCache is an identity.Accumulator-based tag cache.
func NewTagCache ¶
func NewTagCache() *TagCache
NewTagCache creates a new TagCache.
func (*TagCache) Get ¶
Get returns the cached value for key.
func (*TagCache) Len ¶
Len returns the size of the cache,
func (*TagCache) Set ¶
Set attempts to set the value of key as tslice, returning either tslice or the pre-existing value if found.
Source Files ¶
- Version
- v3.5.10+incompatible (latest)
- Published
- Mar 6, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 months ago –
Tools for package owners.