Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) Close()
- func (s Service) Delete(ctx context.Context, key string) error
- func (s Service) Get(ctx context.Context, key string) (string, error)
- func (s Service) Ping(ctx context.Context) error
- func (s Service) SAdd(ctx context.Context, key string, members ...any) error
- func (s Service) SIsMember(ctx context.Context, key string, member any) (bool, error)
- func (s Service) SMembers(ctx context.Context, key string) ([]string, error)
- func (s Service) SRem(ctx context.Context, key string, members ...any) error
- func (s Service) Set(ctx context.Context, key, value string, ttl time.Duration) error
- func (s Service) SetNX(ctx context.Context, key, value string, ttl time.Duration) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.