redis

package
v0.0.0-...-e612854 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: LGPL-2.1 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	common.RedisConnector
	// contains filtered or unexported fields
}

func New

func New(redisURL string) (*Redis, error)

func (*Redis) CreateHMap

func (r *Redis) CreateHMap(key string, obj map[string]string) error

func (*Redis) CreateList

func (r *Redis) CreateList(list string, args []int) error

func (*Redis) Delete

func (r *Redis) Delete(key string) error

func (*Redis) Exists

func (r *Redis) Exists(key string) bool

func (*Redis) Expire

func (r *Redis) Expire(key string, seconds int64) error

func (*Redis) GetHMapValue

func (r *Redis) GetHMapValue(key string, subKey string) (string, error)

func (*Redis) GetKeyValue

func (r *Redis) GetKeyValue(key string) (string, error)

func (*Redis) Open

func (r *Redis) Open() redigo.Conn

func (*Redis) PopExpiredForm

func (r *Redis) PopExpiredForm() string

func (*Redis) RegisterExpiredForms

func (r *Redis) RegisterExpiredForms(formIDs []string) error

func (*Redis) RoundRobinFromList

func (r *Redis) RoundRobinFromList(list string) (int, error)

func (*Redis) SetHMapValue

func (r *Redis) SetHMapValue(key string, subKey string, value string) error

func (*Redis) SetKeyValue

func (r *Redis) SetKeyValue(key string, value string, expirySeconds int64) error

Jump to

Keyboard shortcuts

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