Documentation
¶
Index ¶
- Constants
- type Service
- func (c *Service) Close() error
- func (c *Service) Delete(ctx context.Context, keys ...string) error
- func (c *Service) DeletePattern(ctx context.Context, pattern string) error
- func (s *Service) Exists(ctx context.Context, key string) bool
- func (c *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 (c *Service) Set(ctx context.Context, key string, value any, expiration time.Duration) error
Constants ¶
View Source
const ( DefaultHost = "localhost" DefaultPort = 6379 DefaultDB = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.