cache

package module
v0.0.0-...-bbf8f3e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRUCache

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

func NewLRUCache

func NewLRUCache(capacity uint64) *LRUCache

func (*LRUCache) Clear

func (c *LRUCache) Clear()

func (*LRUCache) Delete

func (c *LRUCache) Delete(key string)

func (*LRUCache) Entries

func (c *LRUCache) Entries() []entry

func (*LRUCache) Get

func (c *LRUCache) Get(key string) string

func (*LRUCache) Load

func (c *LRUCache) Load(cacheFile string) error

func (*LRUCache) Save

func (c *LRUCache) Save(cacheFile string) error

func (*LRUCache) Set

func (c *LRUCache) Set(key string, value string)

Jump to

Keyboard shortcuts

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