circular

package
v0.0.0-...-e7ea114 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

should be use first and last instead of idx and len

func New

func New(size int32) *Cache

func (*Cache) Insert

func (l *Cache) Insert(data interface{}) int32

func (*Cache) Read

func (l *Cache) Read() []interface{}

func (*Cache) Sorted

func (l *Cache) Sorted() []interface{}

func (*Cache) Tail

func (l *Cache) Tail() (interface{}, int32)

func (*Cache) Update

func (l *Cache) Update(idx int32, data interface{})

Jump to

Keyboard shortcuts

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