Using aerospike session store package now

This commit is contained in:
Eduard Urbach 2017-07-06 15:15:21 +02:00
parent 298fe45e72
commit 9de86a83f9

View File

@ -3,6 +3,7 @@ package main
import ( import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/aerogo/api" "github.com/aerogo/api"
"github.com/aerogo/session-store-aerospike"
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/auth" "github.com/animenotifier/notify.moe/auth"
"github.com/animenotifier/notify.moe/components/css" "github.com/animenotifier/notify.moe/components/css"
@ -53,7 +54,7 @@ func configure(app *aero.Application) *aero.Application {
// Sessions // Sessions
app.Sessions.Duration = 3600 * 24 * 7 app.Sessions.Duration = 3600 * 24 * 7
app.Sessions.Store = arn.NewAerospikeStore("Session", app.Sessions.Duration) app.Sessions.Store = aerospikestore.New(arn.DB, "Session", app.Sessions.Duration)
// Layout // Layout
app.Layout = layout.Render app.Layout = layout.Render