Added gocache as a cache wrapper.
This commit is contained in:
parent
70d9d0f8fa
commit
3a45695083
9 changed files with 212 additions and 29 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue