redis

package
v0.0.0-...-b131691 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(config config.BackendConfig) backend.ConfigBackendFactory

Types

type ConfigBackendRedis

type ConfigBackendRedis struct {
	Conn redis.Conn
}

func (ConfigBackendRedis) Check

func (b ConfigBackendRedis) Check() error

func (ConfigBackendRedis) Close

func (b ConfigBackendRedis) Close()

func (ConfigBackendRedis) DeleteKey

func (b ConfigBackendRedis) DeleteKey(key string) error

func (ConfigBackendRedis) Exists

func (b ConfigBackendRedis) Exists(key string) (bool, error)

func (ConfigBackendRedis) GetHash

func (b ConfigBackendRedis) GetHash(key string) (map[string]string, error)

func (ConfigBackendRedis) GetHashField

func (b ConfigBackendRedis) GetHashField(key string, field string) (string, error)

func (ConfigBackendRedis) GetList

func (b ConfigBackendRedis) GetList(key string) ([]string, error)

func (ConfigBackendRedis) GetListIndex

func (b ConfigBackendRedis) GetListIndex(key string, index int64) (string, error)

func (ConfigBackendRedis) GetString

func (b ConfigBackendRedis) GetString(key string) (string, error)

func (ConfigBackendRedis) GetType

func (b ConfigBackendRedis) GetType(key string) (int, error)

func (ConfigBackendRedis) HashFieldExists

func (b ConfigBackendRedis) HashFieldExists(key string, field string) (bool, error)

func (ConfigBackendRedis) ListAppend

func (b ConfigBackendRedis) ListAppend(key string, value string) error

func (ConfigBackendRedis) ListIndexExists

func (b ConfigBackendRedis) ListIndexExists(key string, index int64) (bool, error)

func (ConfigBackendRedis) ListKeys

func (b ConfigBackendRedis) ListKeys(filter string) ([]string, error)

func (ConfigBackendRedis) SetHash

func (b ConfigBackendRedis) SetHash(key string, value map[string]string) error

func (ConfigBackendRedis) SetHashField

func (b ConfigBackendRedis) SetHashField(key string, field string, value string) error

func (ConfigBackendRedis) SetList

func (b ConfigBackendRedis) SetList(key string, value []string) error

func (ConfigBackendRedis) SetString

func (b ConfigBackendRedis) SetString(key string, value string) error

type ConfigBackendRedisFactory

type ConfigBackendRedisFactory struct {
	Pool *redis.Pool
}

func (*ConfigBackendRedisFactory) NewBackend

func (f *ConfigBackendRedisFactory) NewBackend() backend.ConfigBackend

Jump to

Keyboard shortcuts

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