textcache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*TextCache)

func WithDumpRequest

func WithDumpRequest() Option

type TextCache

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

func New

func New(baseDir string, opts ...Option) *TextCache

func (*TextCache) Get

func (c *TextCache) Get(ctx context.Context, key string) ([]byte, error)

func (*TextCache) Key

func (c *TextCache) Key(req *http.Request) (string, error)

func (*TextCache) Set

func (c *TextCache) Set(ctx context.Context, key string, value []byte) error

Jump to

Keyboard shortcuts

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