实现内存缓存

This commit is contained in:
刘祥超
2020-10-05 19:15:35 +08:00
parent d7493c4188
commit 78a2480836
14 changed files with 504 additions and 17 deletions

View File

@@ -217,6 +217,7 @@ func (this *HTTPWriter) Close() {
this.cacheStorage.AddToList(&caches.Item{
Key: this.cacheWriter.Key(),
ExpiredAt: this.cacheWriter.ExpiredAt(),
ValueSize: this.cacheWriter.Size(),
})
}
}