Skip to content

Commit 9cad98a

Browse files
Clean up README concerning multiple backends
1 parent 3ab1f23 commit 9cad98a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Global.configure do |config|
3333
end
3434
```
3535

36+
### Using multiple backends
37+
38+
Sometimes it is practical to store some configuration data on disk (and perhaps, commit it to source control), but
39+
keep some other data in a secure remote location. Which is why you can use more than one backend with Global.
40+
3641
You can declare as many backends as you want; the configuration trees from the backends are deep-merged together,
3742
so that the backend declared later overwrites specific keys in the backend declared prior:
3843

@@ -322,12 +327,6 @@ Get configuration in the app:
322327
=> "https://api.myapp.com"
323328
```
324329

325-
326-
### Combining stores
327-
328-
Sometimes it is practical to store some configuration data on disk, and some in AWS Parameter Store or in Google Cloud Secret Manager; you can declare both backends, and configuration
329-
will be merged (declaration order influence on configuration merge).
330-
331330
### Reload configuration data
332331

333332
```ruby

0 commit comments

Comments
 (0)