package
0.0.3
Repository: https://github.com/hujingwei/go-zero.git
Documentation: pkg.go.dev

# Packages

Package proto is a generated protocol buffer package.

# Functions

Dial connects to the Memcache server at the given network and address using the specified options.
DialConnectTimeout specifies the timeout for connecting to the Memcache server.
DialNetDial specifies a custom dial function for creating TCP connections.
DialReadTimeout specifies the timeout for reading a single command reply.
DialWriteTimeout specifies the timeout for writing a single command.
JSONItem item with FlagJSON flag.
MockWith error.
New get a memcache client.
NewPool new a memcache conn pool.
ProtobufItem item with FlagProtobuf flag.
RawItem item with FlagRAW flag.

# Constants

FlagGOB gob encoding.
FlagGzip gzip compress.
FlagJSON json encoding.
FlagProtobuf protobuf.
FlagRAW default flag.

# Variables

ErrCASConflict means that a CompareAndSwap call failed due to the cached value being modified between the Get and the CompareAndSwap.
ErrConnClosed conn closed.
ErrExists exists.
ErrItem item nil.
ErrItemObject object type Assertion failed.
ErrMalformedKey is returned when an invalid key is used.
ErrNotFound not found.
ErrNotStored not stored.
ErrPoolClosed pool closed.
ErrPoolExhausted is returned from a pool connection method (Store, Get, Delete, IncrDecr, Err) when the maximum number of database connections in the pool has been reached.
ErrStat stat error for monitor.
ErrValueSize item value size must less than 1mb.

# Structs

Config memcache config.
DialOption specifies an option for dialing a Memcache server.
Item is an reply to be got or stored in a memcached server.
Memcache memcache client.
Pool memcache connection pool struct.
Replies is the result of GetMulti.
Reply is the result of Get.

# Interfaces

Conn represents a connection to a Memcache server.