redis

package
v1.14.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TsPrefix             = "KV:TS"
	AddToSortedSet       = "ZADD"
	ReversedRangeByScore = "ZREVRANGEBYSCORE"
	RemoveRangeByScore   = "ZREMRANGEBYSCORE"
	Delete               = "DEL"
	ReversedRange        = "ZREVRANGE"
)
View Source
const KvPrefix = "KV:STORE"

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(host string, port int) *redis.Client

func NewRedisFromConf

func NewRedisFromConf(c definition.Config) *redis.Client

Types

type StoreBuilder

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

func NewStoreBuilder

func NewStoreBuilder(redis *redis.Client) StoreBuilder

func (StoreBuilder) CreateStore

func (b StoreBuilder) CreateStore(table string) (kv.KeyValue, error)

type TsBuilder

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

func NewTsBuilder

func NewTsBuilder(d *redis.Client) TsBuilder

func (TsBuilder) CreateTs

func (b TsBuilder) CreateTs(table string) (st.Tskv, error)

Jump to

Keyboard shortcuts

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