Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
Get the cacheing engine from the context
Types ¶
type Clevercacher ¶
type Clevercacher interface { Get(ctx gctx.Context, key interface{}, params map[string]interface{}) (value interface{}, hit bool, err error) Set(ctx gctx.Context, key interface{}, value interface{}, params map[string]interface{}) (err error) Data(ctx gctx.Context, key interface{}, params map[string]interface{}) (value interface{}, err error) }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
The client used to interact with the library and the cacheing engine used
func (*Client) RegisterCache ¶
func (cl *Client) RegisterCache(c Clevercacher)
add the cacheing engine to the client
Click to show internal directories.
Click to hide internal directories.