优化代码

This commit is contained in:
GoEdgeLab
2021-05-24 09:37:37 +08:00
parent 46ecb8e47d
commit 98c0f7113a
2 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ func (this *Item) IsExpired() bool {
}
func (this *Item) TotalSize() int64 {
return this.Size() + this.MetaSize + int64(len(this.Key))
return this.Size() + this.MetaSize + int64(len(this.Key)) + 64
}
func (this *Item) Size() int64 {