lru

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package lru allows you to store values in a queue and compare their existence.

Used as a temporary cache storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILRUCache

type ILRUCache interface {
	cache.ICache
	GetSettings() ISettings

	GetIndex() uint64
	GetKey(i uint64) ([]byte, bool)
}

func NewLRUCache

func NewLRUCache(pSettings ISettings) ILRUCache

type ISettings

type ISettings interface {
	GetCapacity() uint64
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type SSettings

type SSettings sSettings

Jump to

Keyboard shortcuts

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