cache

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.2.1

type Cache struct {
	URL        string
	TimeTiLive time.Duration
	// contains filtered or unexported fields
}

func NewCache added in v0.2.1

func NewCache(ttl time.Duration, url string, afsService afs.Service) *Cache

func (*Cache) Combine added in v0.2.1

func (c *Cache) Combine(url, key string) string

func (*Cache) Delete added in v0.2.1

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

func (*Cache) GenerateKey added in v0.2.1

func (c *Cache) GenerateKey(aKey string) (string, error)

func (*Cache) Get added in v0.2.1

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

func (*Cache) Upload added in v0.2.1

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

Jump to

Keyboard shortcuts

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