aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'graphql')
-rw-r--r--graphql/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphql/handler.go b/graphql/handler.go
index 89ef3801..0f2aaad8 100644
--- a/graphql/handler.go
+++ b/graphql/handler.go
@@ -11,7 +11,7 @@ import (
type Handler struct {
handler *graphqlHandler.Handler
- cache cache.Cache
+ cache cache.Cacher
}
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@@ -32,7 +32,7 @@ func NewHandler(repo repository.Repo) (*Handler, error) {
GraphiQL: true,
})
- c := cache.NewDefaultCache()
+ c := cache.NewCache()
c.RegisterDefaultRepository(repo)
return &Handler{