Documentation ¶
Index ¶
- func NewRedisService(ctx context.Context, uri string) (service.Service, error)
- type RedisService
- func (s *RedisService) Close(ctx context.Context) error
- func (s *RedisService) LastInt(ctx context.Context) (int64, error)
- func (s *RedisService) NextInt(ctx context.Context) (int64, error)
- func (s *RedisService) SetIncrement(ctx context.Context, i int64) error
- func (s *RedisService) SetLastInt(ctx context.Context, i int64) error
- func (s *RedisService) SetOffset(ctx context.Context, i int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisService ¶
func (*RedisService) SetIncrement ¶
func (s *RedisService) SetIncrement(ctx context.Context, i int64) error
func (*RedisService) SetLastInt ¶
func (s *RedisService) SetLastInt(ctx context.Context, i int64) error
Click to show internal directories.
Click to hide internal directories.