cache

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

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

func ExpirableCache

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

func Init

func Init() error

Init initialize all cache implementations.

Cache Implementations Overview

| Package | Expiration Strategy | |-------------|---------------------------| | lru | No expiration | | cmap | No expiration | | smap | No expiration | | fastcache | No expiration | | lrue | Global expiration | | bigcache | Global expiration | | ristretto | Per-entry expiration | | freecache | Per-entry expiration | | ccache | Per-entry expiration | | gocache | Per-entry expiration |

Types

This section is empty.

Directories

Path Synopsis
Package lrue is a expirable lru cache.
Package lrue is a expirable lru cache.

Jump to

Keyboard shortcuts

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