Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service) Close() error
- func (s *Service) Delete(ctx context.Context, keys ...string) error
- func (s *Service) DeletePattern(ctx context.Context, pattern string) error
- func (s *Service) Exists(ctx context.Context, key string) bool
- func (s *Service) Flush(ctx context.Context) (string, error)
- func (s *Service) Get(ctx context.Context, key string, dest any) error
- func (s *Service) GetBytes(ctx context.Context, key string) ([]byte, error)
- func (s *Service) GetFloat(ctx context.Context, key string) (float64, error)
- func (s *Service) GetInt(ctx context.Context, key string) (int, error)
- func (s *Service) GetString(ctx context.Context, key string) (string, error)
- func (s *Service) Keys(ctx context.Context, pattern string) ([]string, error)
- func (s *Service) Set(ctx context.Context, key string, v any, expire time.Duration) error
- func (s *Service) StartExpirationController()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeletePattern ¶
func (*Service) StartExpirationController ¶
func (s *Service) StartExpirationController()
Click to show internal directories.
Click to hide internal directories.