inmemcache

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package inmemcache provides a built-in process-local KV cache backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `` /* 134-byte string literal not displayed */
}

Config controls whether the built-in in-memory cache backend is active.

type Plugin

type Plugin struct {
	plugin.BasePlugin[*Config]
	// contains filtered or unexported fields
}

Plugin is the built-in in-memory KV cache backend.

func (*Plugin) NewKVCache

func (p *Plugin) NewKVCache(_ context.Context, _ *plugin.AppContext) (plugin.KVCache, error)

NewKVCache returns the shared in-memory cache backend instance.

func (*Plugin) Reset

func (p *Plugin) Reset()

Reset resets the cache state for tests.

Jump to

Keyboard shortcuts

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