예제 #1
0
파일: Memcache.go 프로젝트: intZz/leanote
// onAppStart后调用
func InitMemcache() {
	client = memcache.New("localhost:11211")	
}
예제 #2
0
파일: memcached.go 프로젝트: huaguzi/revel
func NewMemcachedCache(hostList []string, defaultExpiration time.Duration) MemcachedCache {
	return MemcachedCache{memcache.New(hostList...), defaultExpiration}
}