cache

package module
v0.0.0-...-c5e8a93 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 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 Memory

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

func (*Memory) Connect

func (m *Memory) Connect() error

func (*Memory) Connection

func (m *Memory) Connection() wega.CacheConnection

func (*Memory) Get

func (m *Memory) Get(key string) (string, bool)

func (*Memory) GetJSON

func (m *Memory) GetJSON(key string, obj interface{}) bool

func (*Memory) Set

func (m *Memory) Set(key string, val string, expiration time.Duration) bool

func (*Memory) SetJSON

func (m *Memory) SetJSON(key string, obj interface{}, expiration time.Duration) bool

type Redis

type Redis struct {
	Host string
	Pass string
	DB   int
	// contains filtered or unexported fields
}

func (*Redis) Connect

func (r *Redis) Connect() error

func (*Redis) Connection

func (r *Redis) Connection() wega.CacheConnection

func (*Redis) Get

func (r *Redis) Get(key string) (string, bool)

func (*Redis) GetJSON

func (r *Redis) GetJSON(key string, obj interface{}) bool

func (*Redis) Set

func (r *Redis) Set(key string, val string, expiration time.Duration) bool

func (*Redis) SetJSON

func (r *Redis) SetJSON(key string, obj interface{}, expiration time.Duration) bool

Jump to

Keyboard shortcuts

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