mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
Adding app/service/redis/config.go
This commit is contained in:
parent
bd5037b044
commit
48f2b2dff1
1 changed files with 16 additions and 0 deletions
16
app/service/redis/config.go
Normal file
16
app/service/redis/config.go
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
package redis
|
||||||
|
|
||||||
|
type Config struct {
|
||||||
|
Addr string `json:"addr"`
|
||||||
|
Password string `json:"password"`
|
||||||
|
DB int `json:"db"`
|
||||||
|
CacheID string `json:"cache_id"`
|
||||||
|
Prefix string `json:"prefix"`
|
||||||
|
}
|
||||||
|
|
||||||
|
var DefaultConfig = Config{
|
||||||
|
Addr: "localhost:6379",
|
||||||
|
Password: "",
|
||||||
|
DB: 0,
|
||||||
|
Prefix: "ship",
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue