GetShard returns shard under given key
(key string)
| 74 | |
| 75 | // GetShard returns shard under given key |
| 76 | func (slm ShardLockMaps) GetShard(key string) *SingleShardMap { |
| 77 | return slm.shards[slm.hash.Sum(key)%uint32(slm.shardCount)] |
| 78 | } |
| 79 | |
| 80 | // Count returns the number of elements within the map. |
| 81 | func (slm ShardLockMaps) Count() int { |
no test coverage detected