redis

package
v0.0.0-...-be83826 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisBackend

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

func New

func New(host, port string) *RedisBackend

func (*RedisBackend) GetFile

func (rb *RedisBackend) GetFile(fk *backend.FileKey) (io.Reader, bool, error)

func (*RedisBackend) GetSnap

func (rb *RedisBackend) GetSnap(sk *backend.SnapKey) (io.Reader, bool, error)

func (*RedisBackend) PutFile

func (rb *RedisBackend) PutFile(fk *backend.FileKey, r io.Reader) error

func (*RedisBackend) PutSnap

func (rb *RedisBackend) PutSnap(sk *backend.SnapKey, r io.Reader) (bool, error)

Jump to

Keyboard shortcuts

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