Documentation ¶
Overview ¶
Package memcache is a client for memcached.
Index ¶
- type Connection
- func (mc *Connection) Add(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
- func (mc *Connection) Append(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
- func (mc *Connection) Cas(key string, flags uint16, timeout uint64, value []byte, cas uint64) (stored bool, err error)
- func (mc *Connection) Close()
- func (mc *Connection) Delete(key string) (deleted bool, err error)
- func (mc *Connection) FlushAll() (err error)
- func (mc *Connection) Get(keys ...string) (results []Result, err error)
- func (mc *Connection) Gets(keys ...string) (results []Result, err error)
- func (mc *Connection) Prepend(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
- func (mc *Connection) Replace(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
- func (mc *Connection) Set(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
- func (mc *Connection) Stats(argument string) (result []byte, err error)
- type MemcacheError
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (mc *Connection) Close()
func (*Connection) FlushAll ¶
func (mc *Connection) FlushAll() (err error)
This purges the entire cache.
type MemcacheError ¶
type MemcacheError struct {
Message string
}
func NewMemcacheError ¶
func NewMemcacheError(format string, args ...interface{}) MemcacheError
func (MemcacheError) Error ¶
func (merr MemcacheError) Error() string
Click to show internal directories.
Click to hide internal directories.