Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // PortFlag returns port which will be specified for workload services as endpoints. PortFlag = conf.NewIntFlag("memcached_port", "Port for Memcached to listen on. (-p)", defaultPort) // IPFlag returns IP which will be specified for workload services as endpoints. IPFlag = conf.NewStringFlag("memcached_listening_address", "IP address of interface that Memcached will be listening on. It must be actual device address, not '0.0.0.0'.", defaultListenIP) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PathToBinary string Port int User string NumThreads int ThreadsAffinity bool MaxMemoryMB int NumConnections int IP string Timeout int }
Config is a config for the memcached data caching application v 1.4.25. memcached 1.4.25, supported options: -p <num> TCP port number to listen on (default: 11211) -s <file> UNIX socket path to listen on (disables network support) -u <username> assume identity of <username> (only when run as root) -m <num> max memory to use for items in megabytes (default: 64 MB) -c <num> max simultaneous connections (default: 1024) -v verbose (print errors/warnings while in event loop) -vv very verbose (also print client commands/responses) -vvv extremely verbose (also print internal state transitions) -t <num> number of threads to use (default: 4)
func DefaultMemcachedConfig ¶
func DefaultMemcachedConfig() Config
DefaultMemcachedConfig is a constructor for MemcachedConfig with default parameters.
type Memcached ¶
type Memcached struct {
// contains filtered or unexported fields
}
Memcached is a launcher for the memcached data caching application v 1.4.25.