freelru

package
v0.0.0-...-8c930d8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package freelru is a sharded LRU cache that stores live values.

It is the backend that meets the selection criteria without giving anything up: writes land and stay, per-entry lifetimes are honored at millisecond granularity, the entry bound evicts, and the read and write paths are allocation-free and sharded rather than funneled through a worker goroutine. Eviction is plain LRU per shard, so it is not scan-resistant — the same trade the forwarded default makes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache[T any]() types.Cache[T]

Cache returns the process-wide freelru cache of type T, creating it on first use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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