photoprism/internal/session/new.go
Michael Mayer f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00

12 lines
281 B
Go

package session
import (
"time"
"github.com/photoprism/photoprism/internal/config"
)
// New returns a new session store with an optional cachePath.
func New(expiresAfter time.Duration, conf *config.Config) *Session {
return &Session{expiresAfter: expiresAfter, conf: conf}
}