Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheWithConfigPath ¶
NewCacheWithConfig returns a cache with options from config path .
Types ¶
type Options ¶
type Options struct { Shards int LifeWindow time.Duration CleanWindow time.Duration MaxEntriesInWindow int MaxEntrySize int Verbose bool HardMaxCacheSize int StatsEnabled bool }
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.