Documentation
¶
Index ¶
- type RedisBackend
- func (be *RedisBackend) Close() error
- func (be *RedisBackend) Delete(ctx context.Context, u *url.URL) error
- func (be *RedisBackend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)
- func (be *RedisBackend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)
- func (be *RedisBackend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)
- func (be *RedisBackend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)
- func (be *RedisBackend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)
- type RedisBackendConfig
- type RedisWriter
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) 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)
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
Click to show internal directories.
Click to hide internal directories.