f5a8c5a45d
Signed-off-by: Michael Mayer <michael@photoprism.app>
12 lines
281 B
Go
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}
|
|
}
|