Documentation ¶
Index ¶
- func FetchThroughCache[T any, K any](c *cache.Cache[T], key K, fetch func(K) (T, error)) (T, error)
- func GetEnvList(key string) []string
- func GetEnvOrDefault(key, defaultVal string) string
- func GetEnvOrDefaultUint(key string, val uint) uint
- func NewCache[T any](defaultExpiration time.Duration) *cache.Cache[T]
- func ToEnvironmentName(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchThroughCache ¶ added in v1.1.0
func GetEnvList ¶
func GetEnvOrDefault ¶
func GetEnvOrDefaultUint ¶
func ToEnvironmentName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.