cache

package
v0.0.0-...-5eb98c0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const InternalCacheFolder string = ".bbd"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	SetCache(string, []byte, int) error
	GetCache(string) ([]byte, error)
}

type FileCache

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

func NewFileCache

func NewFileCache() *FileCache

func (*FileCache) GetCache

func (c *FileCache) GetCache(name string) ([]byte, error)

func (*FileCache) GetPath

func (c *FileCache) GetPath() string

func (*FileCache) SetCache

func (c *FileCache) SetCache(name string, data []byte, ttl int) error

Jump to

Keyboard shortcuts

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