package
0.0.0-20230424045628-a36dcc1d90e4
Repository: https://github.com/weedge/lib.git
Documentation: pkg.go.dev
# README
介绍
分片并发map
功能
- 提供基础map操作,Get, Set, Del, Count, Iter(Range), Snapshot, Clear 等功能;
- 通过自定义hash算法生成key进行partition; 比如:google cityhash 为了满足大数据量的需求,减少碰撞
参考
# Functions
CreateConcurrentMap is to create a ConcurrentMap with the setting number of the partitions.
StrKey is to convert a string to StringKey.
StrKey is to convert a string to StringKey.
# Structs
ConcurrentMap is a thread safe map collection with better performance.
No description provided by the author
StringKey is for the string type key.
No description provided by the author
# Interfaces
Partitionable is the interface which should be implemented by key type.