cache

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

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

func NewCacher

func NewCacher(cacheSize int) Cacher

func (Cacher) Del

func (c Cacher) Del(key string) bool

func (Cacher) Get

func (c Cacher) Get(key string) (string, error)

func (Cacher) Set

func (c Cacher) Set(key, val string) error

func (Cacher) SetWithExpire

func (c Cacher) SetWithExpire(key, val string, expireSeconds int) error

Jump to

Keyboard shortcuts

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