setting_memcache.go 292 B

123456789101112131415
  1. // +build memcache
  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/go-macaron/cache/memcache"
  8. )
  9. func init() {
  10. EnableMemcache = true
  11. }