redisdb

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash added in v0.3.1

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

func NewHash added in v0.3.1

func NewHash(key string, cli *redis.Client) *Hash

func (*Hash) Read added in v0.3.1

func (h *Hash) Read() (HashValue, error)

func (*Hash) Set added in v0.3.1

func (h *Hash) Set(key, value string) error

type HashValue added in v0.3.1

type HashValue map[string]string

func (HashValue) Decimal added in v0.3.1

func (h HashValue) Decimal(key string) decimal.Decimal

func (HashValue) Get added in v0.3.1

func (h HashValue) Get(key string) string

type List

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

func NewList

func NewList(name string, cli *redis.Client) *List

func (*List) LPush

func (l *List) LPush(obj interface{}) error

func (*List) LTrim added in v0.3.7

func (l *List) LTrim(lo, hi int64) error

func (*List) Left

func (l *List) Left(obj interface{}) error

func (*List) Len

func (l *List) Len() (int64, error)

type Store added in v0.3.1

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

func NewStore added in v0.3.1

func NewStore(key string, cli *redis.Client) *Store

func (*Store) GetOrNop added in v0.3.1

func (s *Store) GetOrNop(obj interface{}) error

func (*Store) Set added in v0.3.1

func (s *Store) Set(obj interface{}) error

Jump to

Keyboard shortcuts

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