redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteListDao

type ByteListDao interface {
	Len() (int64, error)
	Set([]byte) error
	List() ([][]byte, error)
}

func NewByteListDao

func NewByteListDao(key string) ByteListDao

type ByteListDaoImpl

type ByteListDaoImpl struct {
	Key string
}

func (*ByteListDaoImpl) Len

func (b *ByteListDaoImpl) Len() (int64, error)

func (*ByteListDaoImpl) List

func (b *ByteListDaoImpl) List() ([][]byte, error)

func (*ByteListDaoImpl) Set

func (b *ByteListDaoImpl) Set(value []byte) error

type Int64Dao

type Int64Dao interface {
	Get() (int64, error)
	Set(int64) error
}

func NewInt64Dao

func NewInt64Dao(key string) Int64Dao

type Int64DaoImpl

type Int64DaoImpl struct {
	Key string
}

func (*Int64DaoImpl) Get

func (i *Int64DaoImpl) Get() (int64, error)

func (*Int64DaoImpl) Set

func (i *Int64DaoImpl) Set(value int64) error

type SetDao

type SetDao interface {
	Set([]string) error
}

func NewSetDao

func NewSetDao(key string) SetDao

type SetDaoImpl

type SetDaoImpl struct {
	Key string
}

func (*SetDaoImpl) Set

func (i *SetDaoImpl) Set(value []string) error

type StringDao

type StringDao interface {
	Set(string) error
	Get() string
}

func NewStringDao

func NewStringDao(key string) StringDao

type StringDaoImpl

type StringDaoImpl struct {
	Key string
}

func (*StringDaoImpl) Get

func (i *StringDaoImpl) Get() string

func (*StringDaoImpl) Set

func (i *StringDaoImpl) Set(value string) error

Jump to

Keyboard shortcuts

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