MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / deleteWithoutLocker

Method deleteWithoutLocker

internal/caches/storage_memory.go:649–654  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

647}
648
649func (this *MemoryStorage) deleteWithoutLocker(key string) error {
650 hash := this.hash(key)
651 delete(this.valuesMap, hash)
652 _ = this.list.Remove(types.String(hash))
653 return nil
654}
655
656func (this *MemoryStorage) initPurgeTicker() {
657 var autoPurgeInterval = this.policy.MemoryAutoPurgeInterval

Callers 2

openWriterMethod · 0.95
TestMemoryStorage_LockerFunction · 0.80

Calls 3

hashMethod · 0.95
RemoveMethod · 0.65
StringMethod · 0.45

Tested by 1

TestMemoryStorage_LockerFunction · 0.64