setting_redis.go 334 B

1234567891011121314151617
  1. // +build redis
  2. // Copyright 2014 The Gogs Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package setting
  6. import (
  7. _ "github.com/macaron-contrib/cache/redis"
  8. _ "github.com/macaron-contrib/session/redis"
  9. )
  10. func init() {
  11. EnableRedis = true
  12. }