MCPcopy Create free account
hub / github.com/allegro/bigcache / getKeyMetadataWithLock

Method getKeyMetadataWithLock

shard.go:387–394  ·  view source on GitHub ↗
(key uint64)

Source from the content-addressed store, hash-verified

385}
386
387func (s *cacheShard) getKeyMetadataWithLock(key uint64) Metadata {
388 s.lock.RLock()
389 c := s.hashmapStats[key]
390 s.lock.RUnlock()
391 return Metadata{
392 RequestCount: c,
393 }
394}
395
396func (s *cacheShard) getKeyMetadata(key uint64) Metadata {
397 return Metadata{

Callers 1

KeyMetadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected