Documentation ¶ Index ¶ func New(exp, purge time.Duration, redis cache.Client) 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(exp, purge time.Duration, redis cache.Client) cache.Client Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } 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 gocache.go Click to show internal directories. Click to hide internal directories.