fix lru Value comments

This commit is contained in:
gzdaijie
2020-02-03 00:45:50 +08:00
parent 705071ce7c
commit 340a021daf
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -17,10 +17,9 @@ type entry struct {
value Value
}
// Value is optional interface for the value
// if it's not implemented, use unsafe.Sizeof to count
// Value use Len to count how many bytes it takes
type Value interface {
Len() int // count how many bytes it takes
Len() int
}
// New is the Constructor of Cache
@@ -17,10 +17,9 @@ type entry struct {
value Value
}
// Value is optional interface for the value
// if it's not implemented, use unsafe.Sizeof to count
// Value use Len to count how many bytes it takes
type Value interface {
Len() int // count how many bytes it takes
Len() int
}
// New is the Constructor of Cache