cache

package
v0.0.0-...-f028939 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDragonfly

func NewDragonfly(lc fx.Lifecycle, cfg *config.Config, log *slog.Logger) (rueidis.Client, error)

Types

type MemoryCache

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

MemoryCache wraps otter for type-safe in-memory caching.

func NewMemory

func NewMemory(cfg *config.Config, log *slog.Logger) (*MemoryCache, error)

func (*MemoryCache) Clear

func (mc *MemoryCache) Clear()

func (*MemoryCache) Delete

func (mc *MemoryCache) Delete(key string)

func (*MemoryCache) Get

func (mc *MemoryCache) Get(key string) (any, bool)

func (*MemoryCache) Set

func (mc *MemoryCache) Set(key string, value any)

Jump to

Keyboard shortcuts

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