redis

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CRLF = "\r\n"
View Source
const DOLLAR = "$"
View Source
const JSON_GET = "JSON.GET"
View Source
const JSON_SET = "JSON.SET"
View Source
const NEW_LINE = '\n'
View Source
const PLUS = "+"
View Source
const STAR = "*"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.4.0

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

func (*Client) Connect added in v0.4.0

func (r *Client) Connect() error

func (*Client) Disconnect added in v0.4.0

func (r *Client) Disconnect()

func (*Client) Get added in v0.4.0

func (r *Client) Get(key, path string) (string, error)

func (*Client) Set added in v0.4.0

func (r *Client) Set(key, value, path string) error

type Config added in v0.4.0

type Config struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

func InitializeJsonWriter

func InitializeJsonWriter(filename string) (Config, error)

type Producer added in v0.4.0

type Producer struct {
	Ttl time.Duration
	// contains filtered or unexported fields
}

func (*Producer) Close added in v0.4.0

func (p *Producer) Close(_ context.Context) error

func (*Producer) Initialize added in v0.4.0

func (p *Producer) Initialize(configFile string)

func (*Producer) Produce added in v0.4.0

func (p *Producer) Produce(ctx context.Context, k []byte, v []byte, _ any)

Jump to

Keyboard shortcuts

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