-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummy.go
23 lines (19 loc) · 908 Bytes
/
dummy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package cbytecache
import "time"
type DummyMetrics struct{}
func (DummyMetrics) Alloc(_ string, _ uint32) {}
func (DummyMetrics) Fill(_ string, _ uint32) {}
func (DummyMetrics) Reset(_ string, _ uint32) {}
func (DummyMetrics) Release(_ string, _ uint32) {}
func (DummyMetrics) Set(_ string, _ time.Duration) {}
func (DummyMetrics) Hit(_ string, _ time.Duration) {}
func (DummyMetrics) Del(_ string) {}
func (DummyMetrics) Evict(_ string, _ bool) {}
func (DummyMetrics) Miss(_ string) {}
func (DummyMetrics) Expire(_ string) {}
func (DummyMetrics) Corrupt(_ string) {}
func (DummyMetrics) Collision(_ string) {}
func (DummyMetrics) NoSpace(_ string) {}
func (DummyMetrics) Dump(_ string) {}
func (DummyMetrics) Load(_ string) {}
var dummyMetrics = DummyMetrics{}