cache

package
v0.0.0-...-a657923 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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRU

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

LRU cache

func NewLRU

func NewLRU(cap int) *LRU

NewLRU new lru

func (*LRU) Get

func (l *LRU) Get(key string) interface{}

Get get key

func (*LRU) Put

func (l *LRU) Put(key string, value interface{})

Put put key value

func (*LRU) String

func (l *LRU) String() string

type Node

type Node struct {
	Key   string
	Value interface{}
	// contains filtered or unexported fields
}

Node node

Jump to

Keyboard shortcuts

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