Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy[K comparable, V any] struct { // contains filtered or unexported fields }
Policy is an eviction policy based on S3-FIFO eviction algorithm from the following paper: https://dl.acm.org/doi/10.1145/3600006.3613147.
func (*Policy[K, V]) Clear ¶
func (p *Policy[K, V]) Clear()
Clear clears the eviction policy and returns it to the default state.
func (*Policy[K, V]) MaxAvailableCost ¶
MaxAvailableCost returns the maximum available cost of the node.
Click to show internal directories.
Click to hide internal directories.