Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements buffering for random access reads via the `ReaderAt` interface.
func New ¶
New creates a new buffered reader supporting random access. The pageSize argument decides the size of each region (page) tracked in the cache. cacheSize defines the maximum number of pages to cache.
func (*Reader) InvalidateCache ¶
func (reader *Reader) InvalidateCache()
InvalidateCache flushes the internal cache. Resets the statistics.
func (*Reader) Statistics ¶
func (reader *Reader) Statistics() Statistics
Statistics returns statistics about cache efficiency.
type Statistics ¶
Statistics contains statistics about cache efficiency.
Click to show internal directories.
Click to hide internal directories.