Documentation
¶
Index ¶
- type Stats
- type SyncStats
- func (s *SyncStats) ErrClear()
- func (s *SyncStats) ErrDelete()
- func (s *SyncStats) ErrRead()
- func (s *SyncStats) ErrWrite()
- func (s *SyncStats) IncClear()
- func (s *SyncStats) IncDelete()
- func (s *SyncStats) IncRead(hits bool, n int)
- func (s *SyncStats) IncWrite(n int)
- func (s *SyncStats) Reset()
- func (s *SyncStats) Snapshot() Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct {
Hits int
Miss int
ReadBytes int
WriteBytes int
ReadCount int
WriteCount int
DeleteCount int
ClearCount int
ErrReadCount int
ErrWriteCount int
ErrDeleteCount int
ErrClearCount int
}
Stats collects significant metrics about cache operations.
type SyncStats ¶
type SyncStats struct {
Stats
// contains filtered or unexported fields
}
SyncStats implements concurrency-safe methods above Stats data fields.
func (*SyncStats) ErrClear ¶
func (s *SyncStats) ErrClear()
ErrClear increments the clear error counter.
func (*SyncStats) ErrDelete ¶
func (s *SyncStats) ErrDelete()
ErrDelete increments the delete error counter.
func (*SyncStats) ErrRead ¶
func (s *SyncStats) ErrRead()
ErrRead increments the read error counter.
func (*SyncStats) ErrWrite ¶
func (s *SyncStats) ErrWrite()
ErrWrite increments the write error counter.
func (*SyncStats) IncClear ¶
func (s *SyncStats) IncClear()
IncClear increments metrics of clear operation.
func (*SyncStats) IncDelete ¶
func (s *SyncStats) IncDelete()
IncDelete increments metrics of delete operation.
Click to show internal directories.
Click to hide internal directories.