cache

package
v0.0.0-...-5df1a6f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: MIT Imports: 1 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 interface {
	Store(region string) Store
}

func MemoryCache

func MemoryCache() Cache

func RedisCache

func RedisCache(redis *redis.Pool, protocol string) Cache

type Store

type Store interface {
	Get(key string) ([]byte, bool)
	Set(key string, b []byte) error
}

Jump to

Keyboard shortcuts

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