MCPcopy Create free account
hub / github.com/CPChain/chain / Remove

Method Remove

commons/cache/lru_expire_cache.go:47–51  ·  view source on GitHub ↗

remove element

(key interface{})

Source from the content-addressed store, hash-verified

45
46// remove element
47func (c *LRUExpireCache) Remove(key interface{}) {
48 c.lock.Lock()
49 defer c.lock.Unlock()
50 c.cache.Remove(key)
51}
52
53// get all keys
54func (c *LRUExpireCache) Keys() []interface{} {

Callers 2

GetMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1