Documentation ¶
Index ¶
- Variables
- type Config
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Delete(key string) (err error)
- func (c *Conn) Err() error
- func (c *Conn) Get(cmd string, cb func(*memcache.Reply), keys ...string) (err error)
- func (c *Conn) Get2(cmd string, key string) (bs []byte, err error)
- func (c *Conn) Gets(cmd string, keys ...string) (res []*memcache.Reply, err error)
- func (c *Conn) IncrDecr(cmd string, key string, delta uint64) (res uint64, err error)
- func (c *Conn) Store(cmd, key string, value []byte, flags uint32, timeout int32, cas uint64) (err error)
- func (c *Conn) Touch(key string, timeout int32) (err error)
- type Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound not found ErrNotFound = memcache.ErrNotFound )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string // cacheUtils name, for trace Proto string Addr string Active int // pool Idle int // pool DialTimeout xtime.Duration ReadTimeout xtime.Duration WriteTimeout xtime.Duration IdleTimeout xtime.Duration }
Config client settings.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents a connection to a Memcache server.
Click to show internal directories.
Click to hide internal directories.