cache

package
v0.0.0-...-1580a9d Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT 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

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

func New

func New(logger log.Logger, opts *clientutil.Opts, name string) (*Cache, error)

TODO(tsileo): return (*Cache, error)

func (*Cache) Client

func (c *Cache) Client() *clientutil.Client

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Get

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

func (*Cache) Put

func (c *Cache) Put(hash string, blob []byte) error

func (*Cache) PutRemote

func (c *Cache) PutRemote(hash string, blob []byte) error

func (*Cache) Stat

func (c *Cache) Stat(hash string) (bool, error)

func (*Cache) StatRemote

func (c *Cache) StatRemote(hash string) (bool, error)

Jump to

Keyboard shortcuts

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