优化代码

This commit is contained in:
刘祥超
2021-05-24 09:37:37 +08:00
parent 437914a321
commit 496ee6cfa0
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 {