Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { Get(string) (types.DataResponseV1, bool, error) Set(string, types.DataResponseV1) error }
Cacher is able to get and set key value pairs.
type CacherWithMetrics ¶
type CacherWithMetrics interface { Cacher prometheus.Collector }
func NewInMemoryCache ¶
func NewInMemoryCache(expire int32) CacherWithMetrics
Click to show internal directories.
Click to hide internal directories.