redis

package
v0.1.927 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Blackbox

type Blackbox interface {
	// contains filtered or unexported methods
}

type Client

type Client interface {
	Blackbox
	contract.RedisOperator
}

func NewClient

func NewClient(d Dependencies, opts ClientOptions) (Client, error)

func NewNoopClient added in v0.1.83

func NewNoopClient() Client

type ClientOption

type ClientOption = contract.Opt[ClientOptions]

func WithBatchSize

func WithBatchSize(x int) ClientOption

func WithClaimTTL added in v0.1.726

func WithClaimTTL(x time.Duration) ClientOption

func WithExpiresAfter

func WithExpiresAfter(x time.Duration) ClientOption

type ClientOptions

type ClientOptions struct {
	ExpiresAfter time.Duration
	BatchSize    int
	ClaimTTL     time.Duration
}

func ApplyClientOptions

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

type DefaultTool added in v0.1.11

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool added in v0.1.10

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) Close added in v0.1.13

func (d *DefaultTool) Close(ctx context.Context) error

Close closes the underlying client.

type Dependencies added in v0.1.8

type Dependencies struct {
	C contract.RedisClient
}

type Loaded added in v0.1.122

type Loaded struct {
	Username string
	Password string
}

type RedisClientDependencies added in v0.1.14

type RedisClientDependencies struct {
	C contract.CertGenerator
	F contract.FSysFileReader
}

type RedisClientOptions

type RedisClientOptions struct {
	Loaded
	FS        fs.ReadFileFS
	Port      int
	Host      string
	CertPath  string
	KeyPath   string
	CAPath    string
	UseTLS    bool
	MutualTLS bool
}

type Tool added in v0.1.245

type Tool interface {
	contract.CloserWithCtx
}

Jump to

Keyboard shortcuts

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