rediska

package
v0.0.0-...-a2ea4c1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rediska

type Rediska struct {
	Client     *redis.Client
	MaxRecords int64
	HeadSize   int64
}

func NewClient

func NewClient(cfg config.RedisAddr) (*Rediska, error)

func (Rediska) AddMessage

func (r Rediska) AddMessage(ctx context.Context, data []byte) error

func (Rediska) GetLastTen

func (r Rediska) GetLastTen(ctx context.Context) ([]response.Msg, error)

Jump to

Keyboard shortcuts

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