cache

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 4 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(path string) *Cache

func (*Cache) Contains

func (cache *Cache) Contains(key string) bool

func (*Cache) Flush

func (cache *Cache) Flush() error

func (*Cache) Get

func (cache *Cache) Get(key string) interface{}

func (*Cache) GetMap

func (cache *Cache) GetMap(key string) map[string]interface{}

func (*Cache) GetString

func (cache *Cache) GetString(key string) string

func (*Cache) Remove

func (cache *Cache) Remove() error

func (*Cache) Set

func (cache *Cache) Set(key string, value interface{}, expire *time.Time)

func (*Cache) Unset

func (cache *Cache) Unset(key string)

Jump to

Keyboard shortcuts

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