Documentation ¶
Overview ¶
Package memcache provides a cache.Storage compatible client for the memcached cache server.
Index ¶
- type Memcache
- func (c *Memcache) Delete(key string) error
- func (c *Memcache) MaxIdleConns() int
- func (c *Memcache) Name() string
- func (c *Memcache) Read(key string) ([]byte, error)
- func (c *Memcache) ReadMulti(keys []string) (map[string][]byte, error)
- func (c *Memcache) Write(key string, value []byte, expiration time.Duration) error
- type MemcacheClient
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memcache ¶
type Memcache struct {
// contains filtered or unexported fields
}
Memcache is a memcache client. It is safe for unlocked use by multiple concurrent goroutines.
func NewWithClient ¶ added in v1.13.0
func NewWithClient(mc MemcacheClient, option Option) *Memcache
NewWithClient returns a memcache client given the client instance
func (*Memcache) MaxIdleConns ¶ added in v1.10.0
MaxIdleConns returns client's cache MaxIdleConns option value.
func (*Memcache) Read ¶
Read reads the item for given key. It's automatically decode item. Value depending on the client option.
Click to show internal directories.
Click to hide internal directories.