redis

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Example: Redis provider

Prerequisites:

  1. Start Redis: docker run -d --name redis -p 6379:6379 redis:7
  2. Seed keys: redis-cli SET myapp/db/host localhost redis-cli SET myapp/db/port 5432 redis-cli SET myapp/verbose true redis-cli SET myapp/timeout 30s
  3. Run: go run examples/redis/main.go
  4. In another terminal, change a value: redis-cli SET myapp/db/port 3306 Watch the output — the update is reflected within the poll interval.

Jump to

Keyboard shortcuts

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