cache

package
v0.0.0-...-6c0920c Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cache provides a concurrent LRU cache.

To use this package, call NewCache.

Index

Constants

View Source
const MaxCacheSize = 5

MaxCacheSize defines the maximum cache size. It should satisfy 1 <= MaxCacheSize <= 10000, but for some test cases it should satisfy more (check them).

Variables

This section is empty.

Functions

func NewCache

func NewCache[V any]() *lruCache[V]

NewCache makes and returns a new instance of cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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