cache

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCachingMiddleware

func NewCachingMiddleware(cache *Cache) internalhttp.MiddlewareFunc

Types

type Cache

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

func New

func New(path string) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Get

func (c *Cache) Get(key []byte) ([]byte, error)

func (*Cache) SetWithExpiry

func (c *Cache) SetWithExpiry(key, value []byte, expiresAt time.Time) error

Jump to

Keyboard shortcuts

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