package
Version:
v1.12.7
Opens a new window with list of versions in this module.
Published: Dec 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cache provides generic cache types.
type Comparer[E any] interface {
Compare(e E) bool
}
Comparer is an interface defining a generic compare function.
List is a generic cache list.
NewList returns a new cache list.
func (l *List[K, V]) Get(k K) V
Get returns the value for the given key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.