MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / IgnoreKey

Method IgnoreKey

internal/caches/storage_file.go:994–996  ·  view source on GitHub ↗

IgnoreKey 忽略某个Key,即不缓存某个Key

(key string, maxSize int64)

Source from the content-addressed store, hash-verified

992
993// IgnoreKey 忽略某个Key,即不缓存某个Key
994func (this *FileStorage) IgnoreKey(key string, maxSize int64) {
995 this.ignoreKeys.Push(types.String(maxSize) + "$" + key)
996}
997
998// CanSendfile 是否支持Sendfile
999func (this *FileStorage) CanSendfile() bool {

Callers

nothing calls this directly

Calls 2

PushMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected