Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
func
(c *LRUExpireCache) Keys() []
interface
{} {
55
c.lock.Lock()
56
defer
c.lock.Unlock()
57
return
c.cache.Keys()
58
}
59
60
type
cacheEntry
struct
{
61
value
interface
{}
Callers
11
TestNewLRUExpireCache2
Function · 0.95
TestWritePrivateReceipt
Function · 0.45
procFutureBlocks
Method · 0.45
procUnknownAncestors
Method · 0.45
BadBlocks
Method · 0.45
TestNodeIteratorCoverage
Function · 0.45
AllUselessProposers
Method · 0.45
ProposersOfTerm
Method · 0.45
ValidatorsOfTerm
Method · 0.45
PeerInfos
Method · 0.45
GetBlockIdentifiers
Method · 0.45
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.80
Tested by
3
TestNewLRUExpireCache2
Function · 0.76
TestWritePrivateReceipt
Function · 0.36
TestNodeIteratorCoverage
Function · 0.36