autocertcache

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache implements autocert.Cache

func New

func New(fileName string, storage *storage.Storage) *Cache

New returns a new Autocert Cache stored in fileName and encrypted with storage.

func (*Cache) Delete

func (c *Cache) Delete(_ context.Context, key string) error

Delete deletes a cached entry.

func (*Cache) DeleteKeys added in v0.1.2

func (c *Cache) DeleteKeys(_ context.Context, keys []string) error

DeleteKeys deletes a list of cached entries.

func (*Cache) Get

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

Get returns a cached entry.

func (*Cache) Keys added in v0.1.2

func (c *Cache) Keys(_ context.Context) ([]string, error)

Keys returns all the cache keys.

func (*Cache) Put

func (c *Cache) Put(_ context.Context, key string, data []byte) error

Put stores a cache entry.

Jump to

Keyboard shortcuts

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