Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // ReapIntervalSecs defines how long the Cache Index reaper sleeps between reap cycles ReapIntervalSecs int `toml:"reap_interval_secs"` // FlushIntervalSecs sets how often the Cache Index saves its metadata to the cache from application memory FlushIntervalSecs int `toml:"flush_interval_secs"` // MaxSizeBytes indicates how large the cache can grow in bytes before the Index evicts // least-recently-accessed items. MaxSizeBytes int64 `toml:"max_size_bytes"` // MaxSizeBackoffBytes indicates how far below max_size_bytes the cache size must be // to complete a byte-size-based eviction exercise. MaxSizeBackoffBytes int64 `toml:"max_size_backoff_bytes"` // MaxSizeObjects indicates how large the cache can grow in objects before the Index // evicts least-recently-accessed items. MaxSizeObjects int64 `toml:"max_size_objects"` // MaxSizeBackoffObjects indicates how far under max_size_objects the cache size must // be to complete object-size-based eviction exercise. MaxSizeBackoffObjects int64 `toml:"max_size_backoff_objects"` ReapInterval time.Duration `toml:"-"` FlushInterval time.Duration `toml:"-"` }
Options defines the operation of the Cache Indexer
func NewOptions ¶
func NewOptions() *Options
NewOptions returns a new Cache Index Options Reference with default values set
Click to show internal directories.
Click to hide internal directories.