memcached

package
v0.0.0-...-b44688a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

func New

func New(exec executor.Executor, config Config) Memcached

New is a constructor for Memcached.

func (Memcached) Launch

func (m Memcached) Launch() (executor.TaskHandle, error)

Launch starts the workload (process or group of processes). It returns a workload represented as a Task Handle instance. Error is returned when Launcher is unable to start a job.

func (Memcached) String

func (m Memcached) String() string

String returns human readable name for job.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL