cache

package
v0.0.0-...-82af12d Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEngineCache

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

func (*AppEngineCache) New

func (c *AppEngineCache) New(r *http.Request) RCacher

type AppEngineRCache

type AppEngineRCache struct {
	*AppEngineCache
	// contains filtered or unexported fields
}

func (*AppEngineRCache) Get

func (c *AppEngineRCache) Get(id string) (string, bool)

func (*AppEngineRCache) Set

func (c *AppEngineRCache) Set(ids ...string) ([]string, error)

type Cacher

type Cacher interface {
	New(r *http.Request) RCacher
}
var Cache Cacher = &StandardCache{ids: make(map[string]string)}

type RCacher

type RCacher interface {
	Set(ids ...string) ([]string, error)
	Get(id string) (string, bool)
}

func New

func New(r *http.Request) RCacher

type StandardCache

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

func (*StandardCache) New

func (c *StandardCache) New(r *http.Request) RCacher

type StandardRCache

type StandardRCache struct {
	*StandardCache
	// contains filtered or unexported fields
}

func (*StandardRCache) Get

func (c *StandardRCache) Get(id string) (string, bool)

func (*StandardRCache) Set

func (c *StandardRCache) Set(ids ...string) ([]string, error)

Jump to

Keyboard shortcuts

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