redis

package
v0.0.0-...-29fb6bf Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("record with provided serviceName not found")
)

Functions

This section is empty.

Types

type Service

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

func New

func New(ctx context.Context) (*Service, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, key string) ([]byte, error)

func (*Service) Set

func (s *Service) Set(ctx context.Context, key string, bytes []byte, expiration time.Duration) error

func (*Service) Size

func (s *Service) Size(ctx context.Context) (int, error)

Jump to

Keyboard shortcuts

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