Documentation ¶ Index ¶ Variables type Service func New(ctx context.Context) (*Service, error) func (s *Service) Get(ctx context.Context, key string) ([]byte, error) func (s *Service) Set(ctx context.Context, key string, bytes []byte, expiration time.Duration) error func (s *Service) Size(ctx context.Context) (int, error) 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) Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.