Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultShartCount The default number of shard
DefaultShartCount = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
Map A thread-safe anything to anything map
type ShardMap ¶
type ShardMap struct {
// contains filtered or unexported fields
}
ShardMap A thread-safe string to anything shard map, the distribution of keys used FNV-1a hash algorithm
func NewShardMap ¶
NewShardMap create a new shard map
Click to show internal directories.
Click to hide internal directories.