Sayan Nandan
61daf6c2e2
Add example on TLS configuration
...
Also, we've muted dead_code warning froms the compiler, temporarily.
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan
824944e30e
Don't use an explicit `enabled` flag in `snapshot`
...
There is no merit in having a redundant `enabled` key under
`snapshot` in the configuration file; if a `snapshot` key is present,
it is inherently obvious that snapshotting is enabled
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan
5c1fbae609
Fix test for the snapshot config file
...
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan
cf3d213b3f
Enable data to be restored from a snapshot
...
The user can now run `tdb -r <snapshotname>` to restore data from the
snapshot. Also, we'll show a note in the logs when trying to restore from
a snapshot
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan
5b7f3aa6ab
Add config file for snapshots
4 years ago
Sayan Nandan
a0ccf059de
Make `every` and `enabled` keys in bgsave optional
...
If there is no `enabled` key, then assume that BGSAVE is enabled
If there is an `every` and no `enabled`, assume that BGSAVE is enabled
4 years ago
Sayan Nandan
3a84feb14e
Cleanup to use `BGSave` as a configuration object
...
Also a test for a config file with a custom BGSAVE has been added
4 years ago
Sayan Nandan
f2f0d2d4bd
Enable bgsave config to be read from the cfg file
...
Now, the `bgsave` key can be read and parsed from the config file
4 years ago
Sayan Nandan
cab2ce733b
Add tests for heya, get, set and update queries
4 years ago
Sayan Nandan
340eaaebcb
Add support for IPv6 addressing
4 years ago
Sayan Nandan
914b1f06e3
Added port, host and noart options in config file
4 years ago
Sayan Nandan
0690be4d4e
Add module to handle configuration files
4 years ago