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.
func SplitMapStringBool ¶
SplitMapStringBool parse comma-separated string of key1=value1,key2=value2. value is either true or false
func SplitStringSlice ¶ added in v1.1.4
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.