berksafran / go-redis-example

Minimal Redis example by using Go with Cobra CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal Example of Using Redis by Go with Cobra CLI

go run main.go

A minimal example of using Redis by Go

Usage:
  go run main.go [command]

Available Commands:
  help        Help about any command
  normal      Run with Normal Mode including GET, SET, EXISTS examples
  pub         Run with Publisher Mode
  sub         Run with Subscription Mode

Flags:
  -c, --channel_name string   Channel Name (required) (default "default_chan")
  -h, --help                  help for go-redis-example

Use "go run main.go [command] --help" for more information about a command.

About

Minimal Redis example by using Go with Cobra CLI


Languages

Language:Go 100.0%