caches

module
v0.0.0-...-8084858 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: AGPL-3.0

README

Memory Caches

Cache Vanilla

Simple memory cache implemented with a Go map and guarded by a mutex.
Just one file with no dependencies that can be used wherever needed.
Tested for race conditions.

Cache TTL

Added a janitor to clean TTL outdated records.

LRU Any Version

Could be used when mixed values are to be stored.
Small penalty in performance.

LRU Specialised Version

One type of value to be stored.
Best performance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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