节点可以单独设置缓存目录

This commit is contained in:
GoEdgeLab
2022-03-16 15:24:56 +08:00
parent 0a6f136c68
commit d5d823028a
7 changed files with 308 additions and 249 deletions

View File

@@ -45,6 +45,10 @@ func (this *SizeCapacity) Bytes() int64 {
}
}
func (this *SizeCapacity) IsNotEmpty() bool {
return this.Count > 0
}
func (this *SizeCapacity) AsJSON() ([]byte, error) {
return json.Marshal(this)
}