Documentation
¶
Index ¶
- type RedisService
- func (r *RedisService) CreateRedisHash(ctx context.Context, key string) error
- func (r *RedisService) FetchFromRedisHash(ctx context.Context, key string) (map[string]string, error)
- func (r *RedisService) PushToList(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- func (r *RedisService) SaveToRedisHash(ctx context.Context, key string, data map[string]string, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
RedisService wraps the Redis client
func NewRedisService ¶
func NewRedisService(ip, port, password string, db int) *RedisService
NewRedisService initializes a RedisService// NewRedisService initializes a RedisService
func (*RedisService) CreateRedisHash ¶
func (r *RedisService) CreateRedisHash(ctx context.Context, key string) error
func (*RedisService) FetchFromRedisHash ¶
func (r *RedisService) FetchFromRedisHash(ctx context.Context, key string) (map[string]string, error)
Fetch data from Redis hash set// Fetch data from Redis hash set
func (*RedisService) PushToList ¶ added in v1.1.6
Click to show internal directories.
Click to hide internal directories.