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