Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheConfig ¶
type CacheConfig struct {
Role []cache.Role `yaml:"roles"`
MemcachedConfig *memcached.Config `yaml:"memcached"`
RedisConfig *redis.Config `yaml:"redis"`
StoreProbability float64 `yaml:"store_probability"`
}
func (*CacheConfig) Name ¶
func (cfg *CacheConfig) Name() string
Name returns a string representation of the roles claimed by this cache.
func (*CacheConfig) UnmarshalYAML ¶
func (cfg *CacheConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML applies the default while allowing an explicit zero probability.
type Config ¶
type Config struct {
Background *cache.BackgroundConfig `yaml:"background"`
Caches []CacheConfig `yaml:"caches"`
}
func (*Config) RegisterFlagsAndApplyDefaults ¶
Click to show internal directories.
Click to hide internal directories.