cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 9 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTempDir

func GetTempDir() string

func NewRawCache

func NewRawCache(dir string, name string) *raw

Types

type File

type File struct {
	Dir          string
	Name         string
	CompletePath string
}

func NewFileCache

func NewFileCache(dir string, name string) *File

func (*File) IsExist

func (f *File) IsExist() (bool, error)

func (*File) Read

func (f *File) Read() ([]byte, error)

func (*File) Remove

func (f *File) Remove() error

func (*File) Write

func (f *File) Write(data []byte) error

func (*File) WriteJson

func (f *File) WriteJson(v interface{}) error

Jump to

Keyboard shortcuts

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