memcache

package
v0.0.0-...-775d0ad Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemCache

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

MemCache stores responses in memory.

func New

func New() *MemCache

New returns a new MemCache.

func (*MemCache) Get

func (c *MemCache) Get(key string) ([]byte, error)

Get a cached response dump.

func (*MemCache) Set

func (c *MemCache) Set(key string, dump []byte) error

Set a response dump.

Jump to

Keyboard shortcuts

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