cache

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 8 Imported by: 0

README

file-cache

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = "cache"
View Source
var NotFoundError = errors.New("data not found")

Functions

This section is empty.

Types

type FileCache

type FileCache struct {
}

func (*FileCache) Clear

func (f *FileCache) Clear() error

func (*FileCache) Delete

func (f *FileCache) Delete(key string) error

func (*FileCache) DeleteMultiple

func (f *FileCache) DeleteMultiple(keys ...string) error

func (FileCache) Get

func (f FileCache) Get(key string) ([]byte, error)

func (FileCache) GetD

func (f FileCache) GetD(key string, v []byte) []byte

func (*FileCache) GetMultiple

func (f *FileCache) GetMultiple(keys ...string) (map[string][]byte, error)

func (*FileCache) Has

func (f *FileCache) Has(key string) (bool, error)

func (*FileCache) Set

func (f *FileCache) Set(key string, val []byte) error

func (*FileCache) SetMultiple

func (f *FileCache) SetMultiple(values map[string][]byte) error

func (*FileCache) SetWithTTL

func (f *FileCache) SetWithTTL(key string, val []byte, ttl int64) error

Jump to

Keyboard shortcuts

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