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

Method Keys

commons/cache/lru_expire_cache.go:54–58  ·  view source on GitHub ↗

get all keys

()

Source from the content-addressed store, hash-verified

52
53// get all keys
54func (c *LRUExpireCache) Keys() []interface{} {
55 c.lock.Lock()
56 defer c.lock.Unlock()
57 return c.cache.Keys()
58}
59
60type cacheEntry struct {
61 value interface{}

Callers 11

TestNewLRUExpireCache2Function · 0.95
TestWritePrivateReceiptFunction · 0.45
procFutureBlocksMethod · 0.45
procUnknownAncestorsMethod · 0.45
BadBlocksMethod · 0.45
TestNodeIteratorCoverageFunction · 0.45
AllUselessProposersMethod · 0.45
ProposersOfTermMethod · 0.45
ValidatorsOfTermMethod · 0.45
PeerInfosMethod · 0.45
GetBlockIdentifiersMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 3

TestNewLRUExpireCache2Function · 0.76
TestWritePrivateReceiptFunction · 0.36
TestNodeIteratorCoverageFunction · 0.36