cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(opts ...Options) (*Client, error)

func (*Client) Get

func (c *Client) Get(key string) ([]byte, bool, error)

func (*Client) Store

func (c *Client) Store(key string, content []byte) error

type Options

type Options struct {
	Cache    *bool  `usage:"Disable caching" default:"true"`
	CacheDir string `usage:"Directory to store cache (default: $XDG_CACHE_HOME/gptscript)"`
}

Jump to

Keyboard shortcuts

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