Documentation ¶ Index ¶ type Client func New(cfg Config) *Client func (mc *Client) Delete(key string) func (mc *Client) Flush() func (mc *Client) Get(key string) (interface{}, bool) func (mc *Client) Set(key string, val interface{}, ttl time.Duration) func (mc *Client) Stats() int type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func New ¶ func New(cfg Config) *Client func (*Client) Delete ¶ func (mc *Client) Delete(key string) func (*Client) Flush ¶ func (mc *Client) Flush() func (*Client) Get ¶ func (mc *Client) Get(key string) (interface{}, bool) func (*Client) Set ¶ func (mc *Client) Set(key string, val interface{}, ttl time.Duration) func (*Client) Stats ¶ func (mc *Client) Stats() int type Config ¶ type Config struct { DefaultTTL time.Duration CleanupInterval time.Duration } Source Files ¶ View all Source files memcache.go Click to show internal directories. Click to hide internal directories.