command
module
Version:
v0.0.0-...-838b099
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Authentication
A simple example that performs authentication in Redis using the Radix driver.
Setup
Here's a sequence of steps to running this program.
-
Start redis.
$ docker-compose up
-
In the another shell, you can connect to Redis via the CLI tool.
$ docker-compose exec redis redis-cli
127.0.0.1:6379> AUTH secrets
Note: secrets
is the password. See <docker-compose.yaml>.
-
Run Go program.
$ go run ./main.go
-
Shut down and remove the container when you are done.
$ # This should remove both redis-server and redis-cli
$ docker-compose down
-
Alternatively, you can run everything with just 2 commands.
$ make run
$ make teardown # Run this to remove the container
Reference and Credits
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.