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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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