Documentation ¶
Index ¶
- type Shared
- func (shared *Shared[K, T]) CountItems() int
- func (shared *Shared[K, T]) GetItem(key K) (mapitem.Item[T], bool)
- func (shared *Shared[K, T]) GetItems() map[K]mapitem.Item[T]
- func (shared *Shared[K, T]) HasItem(key K) bool
- func (shared *Shared[K, T]) RemoveItem(key K) (K, mapitem.Item[T])
- func (shared *Shared[K, T]) SetItem(key K, value mapitem.Item[T])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shared ¶
type Shared[K comparable, T any] struct { // contains filtered or unexported fields }
Map 分片
func New ¶
func New[K comparable, T any]() *Shared[K, T]
func (*Shared[K, T]) RemoveItem ¶
分片移除值
Click to show internal directories.
Click to hide internal directories.