github.com/gogf/gf/v2@v2.7.4/frame/gins/testdata/redis/config.toml (about)

     1  # 模板引擎目录
     2  viewpath = "/home/www/templates/"
     3  test = "v=3"
     4  # MySQL数据库配置
     5  [database]
     6      [[database.default]]
     7          host     = "127.0.0.1"
     8          port     = "3306"
     9          user     = "root"
    10          pass     = ""
    11          # pass     = "12345678"
    12          name     = "test"
    13          type     = "mysql"
    14          role     = "master"
    15          charset  = "utf8"
    16          priority = "1"
    17      [[database.test]]
    18          host     = "127.0.0.1"
    19          port     = "3306"
    20          user     = "root"
    21          pass     = ""
    22          # pass     = "12345678"
    23          name     = "test"
    24          type     = "mysql"
    25          role     = "master"
    26          charset  = "utf8"
    27          priority = "1"
    28  # Redis数据库配置
    29  [redis]
    30      [redis.default]
    31          address = "127.0.0.1:6379"
    32          db      = 7
    33      [redis.cache]
    34          address = "127.0.0.1:6379"
    35          db      = 8
    36      [redis.disk]
    37          address         = "127.0.0.1:6379"
    38          db              = 9
    39          maxIdle         = 1
    40          maxActive       = 10
    41          idleTimeout     = "10s"
    42          maxConnLifetime = "10s"
    43