diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-25 20:17:26 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-25 20:17:26 -0400 |
commit | 2f820e01d8ed627284c1f8aa278b029377d22657 (patch) | |
tree | 0fbbe6ad03e0aead08894d918715c806b0629621 /modules/setting | |
parent | 688ec6ecbdf0e1c450aa93fdc4d760c4ae63a73f (diff) | |
download | gitea-2f820e01d8ed627284c1f8aa278b029377d22657.tar.gz gitea-2f820e01d8ed627284c1f8aa278b029377d22657.zip |
Fixed #209
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting_memcache.go | 15 | ||||
-rw-r--r-- | modules/setting/setting_redis.go | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/modules/setting/setting_memcache.go b/modules/setting/setting_memcache.go new file mode 100644 index 0000000000..e509f372d3 --- /dev/null +++ b/modules/setting/setting_memcache.go @@ -0,0 +1,15 @@ +// +build memcache + +// Copyright 2014 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package setting + +import ( + _ "github.com/gogits/cache/memcache" +) + +func init() { + EnableMemcache = true +} diff --git a/modules/setting/setting_redis.go b/modules/setting/setting_redis.go new file mode 100644 index 0000000000..78b31d534f --- /dev/null +++ b/modules/setting/setting_redis.go @@ -0,0 +1,16 @@ +// +build redis + +// Copyright 2014 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package setting + +import ( + _ "github.com/gogits/cache/redis" + _ "github.com/gogits/session/redis" +) + +func init() { + EnableRedis = true +} |