Documentation ¶
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) IsClosed() bool
- 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 Connect ¶
func Connect(address string) (conn *Connection, err error)
func (*Connection) Close ¶
func (mc *Connection) Close()
func (*Connection) FlushAll ¶
func (mc *Connection) FlushAll() (err error)
This purges the entire cache.
func (*Connection) IsClosed ¶
func (mc *Connection) IsClosed() bool
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.