Added gocache as a cache wrapper.

This commit is contained in:
mikestefanello 2021-12-06 14:53:28 -05:00
parent 70d9d0f8fa
commit 3a45695083
9 changed files with 212 additions and 29 deletions

View file

@ -3,6 +3,7 @@ package controllers
import (
"html/template"
"net/http"
"time"
"goweb/msg"
"goweb/pager"
@ -36,7 +37,7 @@ type Page struct {
CSRF string
Cache struct {
Enabled bool
MaxAge int
MaxAge time.Duration
Tags []string
}
}