lru

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Default struct {
		Size int `json:"size"`
	} `json:"default"`
	Expire struct {
		Size           int   `json:"size"`
		TTLMillisecond int64 `json:"ttlMillisecond"`
	} `json:"expire"`
}

type Manager

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

func NewManager

func NewManager(configPath string, logger *log.Helper) *Manager

func (*Manager) ExpireLRUCache

func (m *Manager) ExpireLRUCache() *expirable.LRU[string, any]

func (*Manager) LRUCache

func (m *Manager) LRUCache() *lru.Cache[string, any]

Jump to

Keyboard shortcuts

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