Documentation ¶ Index ¶ func New(opt *redis.Options) cache.Client type Client func (c *Client) Get(ctx context.Context, key string) (interface{}, error) func (c *Client) Set(ctx context.Context, key string, val interface{}, exp time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(opt *redis.Options) cache.Client Types ¶ type Client ¶ type Client struct { *redis.Client } func (*Client) Get ¶ func (c *Client) Get(ctx context.Context, key string) (interface{}, error) func (*Client) Set ¶ func (c *Client) Set(ctx context.Context, key string, val interface{}, exp time.Duration) error Source Files ¶ View all Source files goredis.go Click to show internal directories. Click to hide internal directories.