redis

package
v0.0.0-...-b5f5611 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongKey error = errors.New("Wrong key")
	ErrTTL            = errors.New("TTL exceeded")
)

Functions

func New

func New(options *redis.Options) (shrtie.GetSaver, error)

Types

type Redis

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

func (Redis) Get

func (r Redis) Get(key string) (string, error)

func (Redis) Info

func (r Redis) Info(key string) (*shrtie.Metadata, error)

func (Redis) Save

func (r Redis) Save(value string, ttl time.Duration) string

Jump to

Keyboard shortcuts

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