Documentation
¶
Index ¶
- func Make[K comparable, V any](n int) map_cache.Map[K, V]
- func MakeSafe[K comparable, V any](n int) map_cache.SafeMap[K, V]
- type Safe
- func (c *Safe[K, V]) All() iter.Seq[V]
- func (c *Safe[K, V]) Delete(k K)
- func (c *Safe[K, V]) Get(k K) (v V, ok bool)
- func (c *Safe[K, V]) Len() int
- func (c *Safe[K, V]) Locker() sync.Locker
- func (c *Safe[K, V]) Put(k K, v V)
- func (c *Safe[K, V]) RLocker() sync.Locker
- func (c *Safe[K, V]) Scan() iter.Seq2[K, V]
- type Unsafe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Safe ¶
type Safe[K comparable, V any] struct { // contains filtered or unexported fields }
type Unsafe ¶
type Unsafe[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.