aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/handlers.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-24 13:10:20 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-24 13:10:20 -0400
commite0d4a3e50921dc07e23ef9aa107bdc78b3adf176 (patch)
tree3b7abcbc091cafd7591e91d0ad96e3b5760f3ba5 /cmd/server/handlers.go
parent268fcf7e6b671d4959a12111d5abf553bf0a201b (diff)
downloadgo-website-0.0.15.tar.gz
go-website-0.0.15.tar.xz
Use hash in redis. Key can be set in conf.v0.0.15
Diffstat (limited to 'cmd/server/handlers.go')
-rw-r--r--cmd/server/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/server/handlers.go b/cmd/server/handlers.go
index 869e5ba..61bb623 100644
--- a/cmd/server/handlers.go
+++ b/cmd/server/handlers.go
@@ -19,7 +19,7 @@ func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if a.redisPool != nil {
rtr.PathPrefix("/").Handler(rediscache.Handle(
- a.redisPool, http.HandlerFunc(a.PageHandler)))
+ a.redisPool, a.RedisKey, http.HandlerFunc(a.PageHandler)))
} else {
rtr.PathPrefix("/").Handler(http.HandlerFunc(a.PageHandler))
}