caching

package
v0.0.0-...-c2ccff6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 5 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 {
	Get(key string) (string, error)
	Set(key string, data string, expiration time.Duration) (string, error)
}

Cache interface

type MockCache

type MockCache struct {
	mock.Mock
}

MockCache setup

func (*MockCache) Get

func (c *MockCache) Get(key string) (string, error)

Get method

func (*MockCache) Set

func (c *MockCache) Set(key string, data string, expiration time.Duration) (string, error)

Set method

type RedisCache

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

RedisCache setup

func (*RedisCache) Get

func (c *RedisCache) Get(key string) (string, error)

Get method

func (*RedisCache) Set

func (c *RedisCache) Set(key string, data string, expiration time.Duration) (string, error)

Set method

Jump to

Keyboard shortcuts

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