Help us shape the future of Go! Take the 2026 Go Developer Survey

redis

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

func New

func New(ds types.DataSource, attached bool) (*Source, error)

func (*Source) Attach

func (s *Source) Attach(ctx context.Context, _ *db.Pool) error

func (*Source) ConfigGet added in v0.3.20

func (s *Source) ConfigGet(ctx context.Context, key string) (string, error)

func (*Source) ConfigSet added in v0.3.20

func (s *Source) ConfigSet(ctx context.Context, key string, value string) error

func (*Source) Definition

func (s *Source) Definition() types.DataSource

func (*Source) Del

func (s *Source) Del(ctx context.Context, key string) error

func (*Source) Detach

func (s *Source) Detach(_ context.Context, _ *db.Pool) error

func (*Source) Engine

func (s *Source) Engine() engines.Engine

func (*Source) Expire

func (s *Source) Expire(ctx context.Context, key string, ttlSeconds int) error

func (*Source) Get

func (s *Source) Get(ctx context.Context, key string) (string, bool, error)

func (*Source) Incr

func (s *Source) Incr(ctx context.Context, key string) (int64, error)

func (*Source) IncrBy

func (s *Source) IncrBy(ctx context.Context, key string, value int64) (int64, error)

func (*Source) IsAttached

func (s *Source) IsAttached() bool

func (*Source) Keys

func (s *Source) Keys(ctx context.Context, pattern string) ([]string, error)

func (*Source) Name

func (s *Source) Name() string

func (*Source) PSubscribe added in v0.3.20

func (s *Source) PSubscribe(ctx context.Context, pattern string) (*sources.SubscriptionResult, error)

func (*Source) Publish added in v0.3.20

func (s *Source) Publish(ctx context.Context, channel string, message string) error

func (*Source) ReadOnly

func (s *Source) ReadOnly() bool

func (*Source) Set

func (s *Source) Set(ctx context.Context, key string, value string, ttlSeconds int) error

func (*Source) Subscribe added in v0.3.20

func (s *Source) Subscribe(ctx context.Context, channel string) (*sources.SubscriptionResult, error)

Jump to

Keyboard shortcuts

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