1
0
Fork 0
forked from forgejo/forgejo

remove tags redis and memcache

This commit is contained in:
Unknwon 2015-11-21 17:21:22 -05:00
parent d37da1f392
commit 3623b0927e
3 changed files with 4 additions and 43 deletions

View file

@ -15,10 +15,12 @@ import (
"strings"
"time"
"gopkg.in/ini.v1"
"github.com/Unknwon/com"
_ "github.com/go-macaron/cache/memcache"
_ "github.com/go-macaron/cache/redis"
"github.com/go-macaron/session"
_ "github.com/go-macaron/session/redis"
"gopkg.in/ini.v1"
"github.com/gogits/gogs/modules/bindata"
"github.com/gogits/gogs/modules/log"
@ -140,9 +142,6 @@ var (
CacheInternal int
CacheConn string
EnableRedis bool
EnableMemcache bool
// Session settings.
SessionConfig session.Options
@ -545,13 +544,6 @@ func newLogService() {
func newCacheService() {
CacheAdapter = Cfg.Section("cache").Key("ADAPTER").In("memory", []string{"memory", "redis", "memcache"})
if EnableRedis {
log.Info("Redis Supported")
}
if EnableMemcache {
log.Info("Memcache Supported")
}
switch CacheAdapter {
case "memory":
CacheInternal = Cfg.Section("cache").Key("INTERVAL").MustInt(60)