Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { Kind cache.Kind // LocalCacheSize specifies the number of immutable files to keep in a // local lru cache used to speed up searches. Values less than or equal to 0 // (default), disables local caching of immutable files. LocalCacheSize int // RedisKeyExpiration is the expiration value used when creating keys. // A value of zero (meaning no expiration) should only be used when // Redis is configured with a key eviction policy. RedisKeyExpiration time.Duration }
func (*Flags) NewCache ¶
func (f *Flags) NewCache(engine storage.Engine, rclient *redis.Client, reg prometheus.Registerer) (storage.Engine, error)
Click to show internal directories.
Click to hide internal directories.