Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct { // contains filtered or unexported fields }
type ExpirationAction ¶
type ExpirationAction int
const ( AddItem ExpirationAction = iota RemoveItem ExpirationAction = iota )
type ExpirationQueue ¶
type ExpirationQueue[K comparable] []Item[K]
func (ExpirationQueue[K]) Index ¶
func (eq ExpirationQueue[K]) Index(id K) int
func (ExpirationQueue[K]) Len ¶
func (eq ExpirationQueue[K]) Len() int
func (ExpirationQueue[K]) Less ¶
func (eq ExpirationQueue[K]) Less(i, j int) bool
func (*ExpirationQueue[K]) Pop ¶
func (eq *ExpirationQueue[K]) Pop() any
func (*ExpirationQueue[K]) Push ¶
func (eq *ExpirationQueue[K]) Push(x any)
func (ExpirationQueue[K]) Swap ¶
func (eq ExpirationQueue[K]) Swap(i, j int)
type ExpirationQueueAction ¶
type ExpirationQueueAction[K comparable] struct { // contains filtered or unexported fields }
type Item ¶
type Item[K comparable] struct { // contains filtered or unexported fields }
type LeastRecentlyUsedAction ¶ added in v4.66.5
type LeastRecentlyUsedAction[K comparable] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.