Documentation
¶
Index ¶
- type Field
- type GoRedisClient
- func (c *GoRedisClient) GET(ctx context.Context, key string) (string, error)
- func (c *GoRedisClient) HGET(ctx context.Context, key string, field string) (string, error)
- func (c *GoRedisClient) HGETALL(ctx context.Context, key string) (map[string]string, error)
- func (c *GoRedisClient) HSET(ctx context.Context, key string, fields map[string]string) error
- func (c *GoRedisClient) SET(ctx context.Context, key string, val interface{}, exp time.Duration) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoRedisClient ¶
type GoRedisClient struct {
*redis.Client
}
type Interface ¶
type Interface interface {
GET(ctx context.Context, key string) (string, error)
SET(ctx context.Context, key string, val interface{}, exp time.Duration) error
HSET(ctx context.Context, key string, fields map[string]string) error
HGET(ctx context.Context, key string, field string) (string, error)
HGETALL(ctx context.Context, key string) (map[string]string, error)
}
func NewGoRedisClient ¶
Click to show internal directories.
Click to hide internal directories.