Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics(c Cacher)
Types ¶
type Cacher ¶
type Cacher interface { // Get retrieves a value from the cache, the bool indicates if the item was found Get(ctx context.Context, key string) ([]byte, bool, error) // Set sets a value in the cache Set(ctx context.Context, key string, value []byte) error // Delete removes a value from the cache Delete(ctx context.Context, key string) error fmt.Stringer // contains filtered or unexported methods }
Cacher modifies and queries a cache
Click to show internal directories.
Click to hide internal directories.