redis

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PortFlag return port which will be specified for workload services as endpoints.
	PortFlag = conf.NewIntFlag("redis_port", "Port of Redis to listen on. (--port)", defaultPort)
	// IPFlag return ip address of interface thath Redis will be listening on.
	IPFlag = conf.NewStringFlag("redis_listening_address", "Ip address of interface that Redis will be listening on.", defaultListenIP)
	// ClusterFlag is set when cluster mode is enabled.
	ClusterFlag = conf.NewBoolFlag("redis_cluster_mode", "Cluster mode parameter.", defaultClusterMode)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PathToBinary  string
	Port          int
	IP            string
	MaxMemory     string
	ClusterMode   bool
	ProtectedMode bool
	Timeout       int
	Daemonize     bool
	Sudo          bool
	Isolate       bool
}

Config is a config for the Redis data caching application.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig is a contructor for Config with default parameters.

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

Redis is a launcher for the redis data caching application.

func New

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

New is a contructor for Redis.

func (Redis) Launch

func (r Redis) Launch() (executor.TaskHandle, error)

Launch launches Redis server.

func (Redis) String

func (r Redis) String() string

String return name of workload.

Jump to

Keyboard shortcuts

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