redis

package
v0.0.0-...-8375e82 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0 Imports: 2 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 struct {
	Expire time.Duration // optional
}

Cache is a Redis Image Cache. https://gopkg.in/redis.v3

func NewCache

func NewCache(expire int64) *Cache

func (*Cache) Get

func (cache *Cache) Get(key string) (string, error)

*

  • redis Get

func (*Cache) Set

func (cache *Cache) Set(key, value string) error

*

  • redis Set

func (*Cache) SetByte

func (cache *Cache) SetByte(key string, value []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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