(key uint64)
| 385 | } |
| 386 | |
| 387 | func (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 | |
| 396 | func (s *cacheShard) getKeyMetadata(key uint64) Metadata { |
| 397 | return Metadata{ |