Skip to content

installers.db.redis #

fn check #

fn check(args InstallArgs) bool

fn install #

fn install(args_ InstallArgs) !
struct InstallArgs {
    port    int    = 6379
    datadir string = '${os.home_dir()}/hero/var/redis'
    ipaddr  string = "localhost" //can be more than 1, space separated
    reset   bool
    start   bool
    restart bool = true
}

fn start #

fn start(args InstallArgs) !

fn stop #

fn stop() !

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	port    int    = 6379
	datadir string ='${os.home_dir()}/hero/var/redis'
	ipaddr  string = 'localhost' // can be more than 1, space separated
	reset   bool
	start   bool
	restart bool // do not put on true
}