Documentation
¶
Index ¶
Constants ¶
View Source
const (
// SizeLimitDefault is the default write-cache size limit.
SizeLimitDefault = 1 << 30
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriteCache ¶ added in v0.46.0
type WriteCache struct {
Enabled *bool `mapstructure:"enabled"`
Path string `mapstructure:"path"`
Capacity internal.Size `mapstructure:"capacity"`
NoSync *bool `mapstructure:"no_sync"`
}
WriteCache contains configuration for write cache.
func (*WriteCache) Normalize ¶ added in v0.46.0
func (wc *WriteCache) Normalize(def WriteCache)
Normalize sets default values for write cache fields if they are not set.
Click to show internal directories.
Click to hide internal directories.