Documentation ¶ Index ¶ type Client func New(dir string) *Client func (m *Client) Destroy(key string) error func (m *Client) Exists(key string) bool func (m *Client) Get(key string) string func (m *Client) Set(key string, value string, expiration time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { sync.RWMutex // contains filtered or unexported fields } func New ¶ func New(dir string) *Client func (*Client) Destroy ¶ func (m *Client) Destroy(key string) error func (*Client) Exists ¶ func (m *Client) Exists(key string) bool func (*Client) Get ¶ func (m *Client) Get(key string) string func (*Client) Set ¶ func (m *Client) Set(key string, value string, expiration time.Duration) error Source Files ¶ View all Source files memory.go Click to show internal directories. Click to hide internal directories.