cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 0 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[T any] interface {
	Cache(T)
	GetCached() []T
	MaxBufferSize() uint64
	IntervalBeforeFlush() uint64
}

type ListCacheImpl

type ListCacheImpl[T any] struct {
	// contains filtered or unexported fields
}

func NewListCacheImpl

func NewListCacheImpl[T any]() ListCacheImpl[T]

func (*ListCacheImpl[T]) Cache

func (c *ListCacheImpl[T]) Cache(t T)

func (*ListCacheImpl[T]) GetCached

func (c *ListCacheImpl[T]) GetCached() []T

func (*ListCacheImpl[T]) IntervalBeforeFlush

func (c *ListCacheImpl[T]) IntervalBeforeFlush() uint64

func (*ListCacheImpl[T]) MaxBufferSize

func (c *ListCacheImpl[T]) MaxBufferSize() uint64

Jump to

Keyboard shortcuts

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