policy

package
v0.0.0-...-3fd51b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optimal

type Optimal struct {
	// contains filtered or unexported fields
}

func NewOptimal

func NewOptimal(capacity int) *Optimal

func (*Optimal) Close

func (o *Optimal) Close()

func (*Optimal) Name

func (o *Optimal) Name() string

func (*Optimal) Ratio

func (o *Optimal) Ratio() float64

func (*Optimal) Record

func (o *Optimal) Record(e event.AccessEvent)

type Policy

type Policy struct {
	// contains filtered or unexported fields
}

func NewPolicy

func NewPolicy(c client.Client[uint64, uint64]) *Policy

func (*Policy) Close

func (p *Policy) Close()

func (*Policy) Init

func (p *Policy) Init(capacity int)

func (*Policy) Name

func (p *Policy) Name() string

func (*Policy) Ratio

func (p *Policy) Ratio() float64

func (*Policy) Record

func (p *Policy) Record(e event.AccessEvent)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL