Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct {
ParquetShardCacheSize int `yaml:"parquet_shard_cache_size"`
ParquetShardCacheTTL time.Duration `yaml:"parquet_shard_cache_ttl"`
MaintenanceInterval time.Duration `yaml:"-"`
}
func (*CacheConfig) RegisterFlagsWithPrefix ¶
func (cfg *CacheConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
type CacheInterface ¶
func NewParquetShardCache ¶
func NewParquetShardCache[T any](cfg *CacheConfig, name string, reg prometheus.Registerer) (CacheInterface[T], error)
type ParquetShardCache ¶
type ParquetShardCache[T any] struct { // contains filtered or unexported fields }
func (*ParquetShardCache[T]) Close ¶
func (c *ParquetShardCache[T]) Close()
func (*ParquetShardCache[T]) Get ¶
func (c *ParquetShardCache[T]) Get(path string) (r T)
func (*ParquetShardCache[T]) Set ¶
func (c *ParquetShardCache[T]) Set(path string, reader T)
Click to show internal directories.
Click to hide internal directories.