Documentation ¶ Index ¶ type Client func New(path string) (*Client, error) func (c *Client) Close() error func (c *Client) Delete(bucket string, key string) error func (c *Client) Get(bucket string, key string) ([]byte, error) func (c *Client) Put(bucket string, key string, val []byte, ttl time.Duration) error 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(path string) (*Client, error) func (*Client) Close ¶ func (c *Client) Close() error func (*Client) Delete ¶ func (c *Client) Delete(bucket string, key string) error func (*Client) Get ¶ func (c *Client) Get(bucket string, key string) ([]byte, error) func (*Client) Put ¶ func (c *Client) Put(bucket string, key string, val []byte, ttl time.Duration) error Source Files ¶ View all Source files cache.go delete.go get.go put.go test.go Click to show internal directories. Click to hide internal directories.