实现基础的206 partial content缓存

This commit is contained in:
刘祥超
2022-03-03 19:36:28 +08:00
parent 8aeb5eb1b6
commit 581a3d49fc
39 changed files with 1139 additions and 271 deletions

View File

@@ -105,7 +105,7 @@ func (this *MemoryStorage) Init() error {
}
// OpenReader 读取缓存
func (this *MemoryStorage) OpenReader(key string, useStale bool) (Reader, error) {
func (this *MemoryStorage) OpenReader(key string, useStale bool, isPartial bool) (Reader, error) {
hash := this.hash(key)
this.locker.RLock()