redis

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisBackend

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

func NewRedisBackend

func NewRedisBackend(ctx context.Context, conf RedisBackendConfig) (*RedisBackend, error)

func (*RedisBackend) Close

func (be *RedisBackend) Close() error

func (*RedisBackend) Delete

func (be *RedisBackend) Delete(ctx context.Context, u *url.URL) error

func (*RedisBackend) ListPrefix

func (be *RedisBackend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)

func (*RedisBackend) ReadMetadata

func (be *RedisBackend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)

func (*RedisBackend) Reader

func (be *RedisBackend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)

func (*RedisBackend) ReaderAt

func (be *RedisBackend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)

func (*RedisBackend) Writer

func (be *RedisBackend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)

type RedisBackendConfig

type RedisBackendConfig struct {
	Dsn string
}

type RedisWriter

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

func NewRedisWriter

func NewRedisWriter(client rueidis.Client, key string) *RedisWriter

func (*RedisWriter) Close

func (w *RedisWriter) Close() error

func (*RedisWriter) Write

func (w *RedisWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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