MCPcopy Create free account
hub / github.com/astercloud/aster / Clear

Method Clear

pkg/compression/service.go:642–647  ·  view source on GitHub ↗

Clear 清空缓存

()

Source from the content-addressed store, hash-verified

640
641// Clear 清空缓存
642func (c *CompressionCache) Clear() {
643 c.mu.Lock()
644 defer c.mu.Unlock()
645
646 c.cache = make(map[string]*CompressResult)
647}
648
649// Size 获取缓存大小
650func (c *CompressionCache) Size() int {

Callers 2

TestCompressionCacheFunction · 0.95
ClearCacheMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestCompressionCacheFunction · 0.76