package
Version:
v1.9.10
Opens a new window with list of versions in this module.
Published: Jul 6, 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.