1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

add cache

This commit is contained in:
slene
2014-03-21 21:06:47 +08:00
parent e4053f5e98
commit c7e0d3a499
3 changed files with 23 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ import (
"github.com/codegangsta/martini"
"github.com/martini-contrib/sessions"
"github.com/gogits/cache"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/log"
@@ -25,6 +27,7 @@ type Context struct {
Req *http.Request
Res http.ResponseWriter
Session sessions.Session
Cache cache.Cache
User *models.User
IsSigned bool