dragonfly

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DragonflyConfig

type DragonflyConfig struct {
	Addr     string
	Username string
	Password string
	DB       int

	MaxRetries      *int
	DialTimeout     *time.Duration
	ReadTimeout     *time.Duration
	WriteTimeout    *time.Duration
	PoolSize        *int
	MinIdleConns    *int
	TLSConfig       *tls.Config
	ClientName      *string
	DisableIdentity *bool
}

type DragonflyStore

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

func NewDragonflyStore

func NewDragonflyStore(config *DragonflyConfig) *DragonflyStore

func (*DragonflyStore) Close

func (ds *DragonflyStore) Close() error

func (*DragonflyStore) Delete

func (ds *DragonflyStore) Delete(ctx context.Context, key string) error

func (*DragonflyStore) Exists

func (ds *DragonflyStore) Exists(ctx context.Context, key string) (bool, error)

func (*DragonflyStore) Get

func (ds *DragonflyStore) Get(ctx context.Context, key string) (string, error)

func (*DragonflyStore) HDel

func (ds *DragonflyStore) HDel(ctx context.Context, key string, field string) error

func (*DragonflyStore) HGet

func (ds *DragonflyStore) HGet(ctx context.Context, key string, field string) (string, error)

func (*DragonflyStore) HGetAll

func (ds *DragonflyStore) HGetAll(ctx context.Context, key string) (map[string]string, error)

func (*DragonflyStore) HSet

func (ds *DragonflyStore) HSet(ctx context.Context, key string, field string, value string) error

func (*DragonflyStore) LPush

func (ds *DragonflyStore) LPush(ctx context.Context, key string, value string) error

func (*DragonflyStore) LRange

func (ds *DragonflyStore) LRange(ctx context.Context, key string, start, stop int64) ([]string, error)

func (*DragonflyStore) Set

func (ds *DragonflyStore) Set(ctx context.Context, key string, value string, expiration time.Duration) error

Implement Store interface

func (*DragonflyStore) Type

func (ds *DragonflyStore) Type() string

Jump to

Keyboard shortcuts

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