kvcache

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVCacheAligner

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

func NewKVCacheAligner

func NewKVCacheAligner() *KVCacheAligner

func (*KVCacheAligner) AnalyzePrefix

func (a *KVCacheAligner) AnalyzePrefix(messages []string) map[string]interface{}

func (*KVCacheAligner) CheckCache

func (a *KVCacheAligner) CheckCache(content string) bool

func (*KVCacheAligner) Fingerprint

func (a *KVCacheAligner) Fingerprint(content string) string

func (*KVCacheAligner) HitRate

func (a *KVCacheAligner) HitRate() float64

func (*KVCacheAligner) OptimizeMessageOrder

func (a *KVCacheAligner) OptimizeMessageOrder(messages []string) []string

func (*KVCacheAligner) Stats

func (a *KVCacheAligner) Stats() map[string]interface{}

Jump to

Keyboard shortcuts

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