Documentation ¶
Overview ¶
Package easymap...
Description : easymap...
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-23 9:55 下午
Package easymap...
Description : easymap...
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-23 10:15 下午
Package easymap ...
Description : 普通的的map,增加锁支持
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-23 10:03 下午
Package easymap...
Description : 分段存储的map,并发行更好,分段数量为 1, 将退化成普通的
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-23 10:47 下午
Package easymap...
Description : 内置sync.Map + segment
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-24 2:08 下午
Package easymap...
Description : 内置sync.Map + segment
Author : go_developer@163.com<白茶清欢>
Date : 2021-02-24 2:08 下午
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EasyMap ¶
type EasyMap interface { Get(key interface{}) (interface{}, error) GetWithReceiver(key interface{}, dest interface{}) error GetUint(key interface{}) (uint, error) GetUint8(key interface{}) (uint8, error) GetUint16(key interface{}) (uint16, error) GetUint32(key interface{}) (uint32, error) GetUint64(key interface{}) (uint64, error) GetInt(key interface{}) (int, error) GetInt8(key interface{}) (int8, error) GetInt16(key interface{}) (int16, error) GetInt32(key interface{}) (int32, error) GetInt64(key interface{}) (int64, error) GetFloat32(key interface{}) (float32, error) GetFloat64(key interface{}) (float64, error) GetBool(key interface{}) (bool, error) GetString(key interface{}) (string, error) Set(key interface{}, value interface{}) Del(key interface{}) Exist(key interface{}) bool GetAll() map[interface{}]interface{} }
EasyMap 约束各种数据接口的实现
Author : go_developer@163.com<白茶清欢>
Date : 9:56 下午 2021/2/23
func NewSegment ¶
NewSegment 获取分段map实例
Author : go_developer@163.com<白茶清欢>
Date : 11:05 下午 2021/2/24
func NewSegmentSync ¶
NewSegmentSync 获取SegmentSync实例
Author : go_developer@163.com<白茶清欢>
Date : 6:02 下午 2021/2/24