Documentation ¶
Index ¶
Constants ¶
View Source
const (
CacheNoExpiration time.Duration = 0
)
Variables ¶
This section is empty.
Functions ¶
func MapFindFirst ¶ added in v1.1.0
MapFindFirst get from list of maps until first found.
Types ¶
type Cache ¶ added in v1.1.3
type Cache interface { // Set will set value for specified key with validityPeriod duration. Set(key string, value interface{}, duration time.Duration) // Get will get value for specified key Get(key string) (interface{}, bool) // Shrink will shrink cache to only contain desiredKeys. Shrink(desiredKeys sets.String) }
Click to show internal directories.
Click to hide internal directories.