Documentation
¶
Overview ¶
Package gocache instruments github.com/levskiy0/go-cache operations and locks as webpprof cache entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache = cachecontract.Cache
Cache aliases the go-cache facade accepted by Profile.
type CacheDriver ¶
type CacheDriver = cachecontract.Driver
CacheDriver aliases the go-cache driver wrapped by the integration.
type Lock ¶
type Lock = cachecontract.Lock
Lock aliases the go-cache lock contract returned by instrumented drivers.
type ProfilerGoCache ¶
type ProfilerGoCache struct {
Store string
}
ProfilerGoCache implements webpprof.Integration for go-cache instances.
func New ¶
func New(stores ...string) ProfilerGoCache
New creates a go-cache integration. The first non-empty store name is shown in captured entries; it defaults to "default".
func (ProfilerGoCache) Name ¶
func (ProfilerGoCache) Name() string
Name returns the integration cache namespace.
Click to show internal directories.
Click to hide internal directories.