From e0d4a3e50921dc07e23ef9aa107bdc78b3adf176 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 24 Oct 2021 13:10:20 -0400 Subject: Use hash in redis. Key can be set in conf. --- cmd/server/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/server/handlers.go') 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)) } -- cgit v1.2.3