Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentMap ¶
ConcurrentMap represents safe concurrent map container
func NewConcurrentMap ¶
func NewConcurrentMap[Key KeyType, T any]() *ConcurrentMap[Key, T]
func (*ConcurrentMap[Key, T]) Del ¶ added in v1.1.5
func (container *ConcurrentMap[Key, T]) Del(key Key)
Del remove keys from container
func (*ConcurrentMap[Key, T]) Find ¶
func (container *ConcurrentMap[Key, T]) Find(key Key) (item T, err error)
Find returns item if key is not exist, returns not found error
func (*ConcurrentMap[Key, T]) Get ¶
func (container *ConcurrentMap[Key, T]) Get(key Key) (item T, exist bool)
Get return item and exist
func (*ConcurrentMap[Key, T]) Set ¶
func (container *ConcurrentMap[Key, T]) Set(key Key, value T) error
Set sets map item
Click to show internal directories.
Click to hide internal directories.