Versions in this module Expand all Collapse all v0 v0.0.5 Mar 4, 2024 v0.0.4 Mar 4, 2024 Changes in this version + func KeyAsString(key uint64) string + type Adapter interface + Get func(key uint64) ([]byte, bool) + Release func(key uint64) + Set func(key uint64, response []byte, expiration time.Time) + type Client struct + func NewClient(opts ...ClientOption) (*Client, error) + func (c *Client) Middleware(next http.Handler) http.Handler + type ClientOption func(c *Client) error + func ClientWithAdapter(a Adapter) ClientOption + func ClientWithExpiresHeader() ClientOption + func ClientWithMethods(methods []string) ClientOption + func ClientWithRefreshKey(refreshKey string) ClientOption + func ClientWithTTL(ttl time.Duration) ClientOption + type Response struct + Expiration time.Time + Frequency int + Header http.Header + LastAccess time.Time + Value []byte + func BytesToResponse(b []byte) Response + func (r Response) Bytes() []byte