mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	实现基础的206 partial content缓存
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user