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

Method IgnoreKey

internal/caches/storage_memory.go:416–418  ·  view source on GitHub ↗

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

(key string, maxSize int64)

Source from the content-addressed store, hash-verified

414
415// IgnoreKey 忽略某个Key,即不缓存某个Key
416func (this *MemoryStorage) IgnoreKey(key string, maxSize int64) {
417 this.ignoreKeys.Push(types.String(maxSize) + "$" + key)
418}
419
420// CanSendfile 是否支持Sendfile
421func (this *MemoryStorage) CanSendfile() bool {

Callers

nothing calls this directly

Calls 2

PushMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected