Add docs for badger and leveldb backends

This commit is contained in:
Jiajie Chen 2020-10-17 14:17:39 +08:00
parent 94154742a7
commit 7dfe6a632c

View File

@ -82,7 +82,7 @@ db_file = "/tmp/tunasync/manager.db"
ca_cert = ""
```
如果使用 redis 作为数据库后端,把 db_type 改为 redis下面的 db_file 设为 redis 服务器的地址: `redis://user:password@host:port/db_number`
除了 bolt 以外,还支持 badger、leveldb 和 redis 的数据库后端。对于 badger 和 leveldb只需要修改 db_type。如果使用 redis 作为数据库后端,把 db_type 改为 redis并把下面的 db_file 设为 redis 服务器的地址: `redis://user:password@host:port/db_number`
### 运行