NewWithCustomHashAndCount creates a new ShardLockMaps with custom hash function and shard count. This provides maximum flexibility for performance tuning.
(hash IHash, shardCount int)
| 69 | // NewWithCustomHashAndCount creates a new ShardLockMaps with custom hash function and shard count. |
| 70 | // This provides maximum flexibility for performance tuning. |
| 71 | func NewWithCustomHashAndCount(hash IHash, shardCount int) ShardLockMaps { |
| 72 | return createShardLockMaps(hash, shardCount) |
| 73 | } |
| 74 | |
| 75 | // GetShard returns shard under given key |
| 76 | func (slm ShardLockMaps) GetShard(key string) *SingleShardMap { |
nothing calls this directly
no test coverage detected