cache

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: BSD-3-Clause Imports: 4 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[V any] struct {
	// contains filtered or unexported fields
}

func (*Cache[V]) Add

func (c *Cache[V]) Add(key string, value V) error

func (*Cache[V]) Bytes

func (c *Cache[V]) Bytes() int64

func (*Cache[V]) Get

func (c *Cache[V]) Get(key string) (value V, ok bool)

func (*Cache[V]) Items

func (c *Cache[V]) Items() int64

func (*Cache[V]) RemoveOldest

func (c *Cache[V]) RemoveOldest()

Jump to

Keyboard shortcuts

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