summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting_redis.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting_redis.go')
-rw-r--r--modules/setting/setting_redis.go16
1 files changed, 16 insertions, 0 deletions
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
+}