redis_store

package
v0.0.0-...-9931aa1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 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 RedisStore

type RedisStore struct {
	Client *redis.Client
}

func NewRedisStore

func NewRedisStore(hostPort string, password string, database int) *RedisStore

func (*RedisStore) Close

func (s *RedisStore) Close()

func (*RedisStore) Delete

func (s *RedisStore) Delete(fullFileName string) (err error)

Currently the fid is not returned

func (*RedisStore) Get

func (s *RedisStore) Get(fullFileName string) (fid string, err error)

func (*RedisStore) Put

func (s *RedisStore) Put(fullFileName string, fid string) (err error)

Jump to

Keyboard shortcuts

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