Documentation
¶
Index ¶
- type ExpMap
- type SyncMap
- func (sm *SyncMap[T]) Delete(key string)
- func (sm *SyncMap[T]) Get(key string) T
- func (sm *SyncMap[T]) GetEx(key string) (T, bool)
- func (sm *SyncMap[T]) Set(key string, value T)
- func (sm *SyncMap[T]) SetUnless(key string, value T) bool
- func (sm *SyncMap[T]) TestAndSet(key string, newValue T, testFn func(T, bool) bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpMap ¶ added in v0.11.1
type ExpMap[T any] struct { // contains filtered or unexported fields }
func MakeExpMap ¶ added in v0.11.1
type SyncMap ¶
type SyncMap[T any] struct { // contains filtered or unexported fields }
func MakeSyncMap ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.