cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 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 CacheHandler

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

CacheHandler handles caching of tool execution results

func NewCacheHandler

func NewCacheHandler() *CacheHandler

NewCacheHandler creates a new cache handler instance

func (*CacheHandler) Add

func (c *CacheHandler) Add(tool, input, output string)

Add adds a tool execution result to the cache

func (*CacheHandler) Clear

func (c *CacheHandler) Clear()

Clear clears all cached entries

func (*CacheHandler) Read

func (c *CacheHandler) Read(tool, input string) (string, bool)

Read retrieves a cached tool execution result

Jump to

Keyboard shortcuts

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