Versions in this module Expand all Collapse all v1 v1.1.0 Jan 9, 2024 Changes in this version + var ChannelWriteBuckets = prometheus.ExponentialBucketsRange(float64(time.Microsecond * 1), float64(10 * time.Second), 50) + var IOBuckets = prometheus.ExponentialBucketsRange(float64(time.Millisecond * 1), float64(10 * time.Second), 50) + type Cache struct + func Open(fs vfs.FS, logger base.Logger, fsDir string, blockSize int, ...) (*Cache, error) + func (c *Cache) Close() error + func (c *Cache) Metrics() Metrics + func (c *Cache) ReadAt(ctx context.Context, fileNum base.DiskFileNum, p []byte, ofs int64, ...) error + type Metrics struct + Count int64 + DiskReadLatency prometheus.Histogram + DiskWriteLatency prometheus.Histogram + Evictions int64 + GetLatency prometheus.Histogram + MultiBlockReads int64 + MultiShardReads int64 + PutLatency prometheus.Histogram + QueuePutLatency prometheus.Histogram + ReadsWithFullHit int64 + ReadsWithNoHit int64 + ReadsWithPartialHit int64 + Size int64 + TotalReads int64 + WriteBackFailures int64 + type ReadFlags struct + ReadOnly bool