diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 13:56:12 -0300 |
---|---|---|
committer | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 13:56:12 -0300 |
commit | ad30def5420185dfbe2107b1ec972bddc975b358 (patch) | |
tree | a5a4d1039dc4d1c5dadc7d19dad23e87bb85464d | |
parent | b0bb22aa9c9f1d5b2e582e58bf20c6856feb87ec (diff) |
redis config
-rw-r--r-- | config-init | 5 | ||||
-rw-r--r-- | session.go | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/config-init b/config-init index eb71163..426e652 100644 --- a/config-init +++ b/config-init @@ -35,4 +35,7 @@ publicindex:false ## add your instance salt here for secure tripcodes -instancesalt:
\ No newline at end of file +instancesalt: + +## connect to this redis server +redis:redis://localhost @@ -12,7 +12,7 @@ import ( var cache redis.Conn func InitCache() { - conn, err := redis.DialURL("redis://localhost") + conn, err := redis.DialURL(GetConfigValue("redis")) if err != nil { panic(err) } |