Documentation
¶
Overview ¶
Example: Redis provider
Prerequisites:
- Start Redis: docker run -d --name redis -p 6379:6379 redis:7
- 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
- Run: go run examples/redis/main.go
- In another terminal, change a value: redis-cli SET myapp/db/port 3306 Watch the output — the update is reflected within the poll interval.
Click to show internal directories.
Click to hide internal directories.