Documentation ¶
Index ¶
- type Item
- type Map
- func (m *Map[K, V]) ClearTimer()
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Get(key K) (V, bool)
- func (m *Map[K, V]) Len() int
- func (m *Map[K, V]) Range(f func(key K, value V) bool)
- func (m *Map[K, V]) Set(key K, value V)
- func (m *Map[K, V]) SetExpire(key K, value V, expire int64)
- func (m *Map[K, V]) SetShardCall(call func(K, int) int)
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Map[K, V]) ClearTimer ¶
func (m *Map[K, V]) ClearTimer()
func (*Map[K, V]) SetShardCall ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T comparable]() *Set[T]
func NewSetByList ¶
func NewSetByList[T comparable](values []T) *Set[T]
func (*Set[T]) MergeByList ¶
func (s *Set[T]) MergeByList(values []T)
func (*Set[T]) RemoveMany ¶
func (s *Set[T]) RemoveMany(values []T)
Click to show internal directories.
Click to hide internal directories.