コード例 #1
0
ファイル: memcache.go プロジェクト: ray-king/beego
// connect to memcache and keep the connection.
func (rc *MemcacheCache) connectInit() (*memcache.Connection, error) {
	c, err := memcache.Connect(rc.conninfo)
	if err != nil {
		return nil, err
	}
	return c, nil
}
コード例 #2
0
ファイル: sess_memcache.go プロジェクト: 4eek/beego
// connect to memcache and keep the connection.
func (rp *MemProvider) connectInit() (*memcache.Connection, error) {
	c, err := memcache.Connect(rp.savePath)
	if err != nil {
		return nil, err
	}
	return c, nil
}
コード例 #3
0
ファイル: memcache.go プロジェクト: henrylee2cn/wechat-3
// connect to memcache and keep the connection.
func (rc *MemcacheCache) connectInit() *memcache.Connection {
	c, err := memcache.Connect(rc.conninfo)
	if err != nil {
		return nil
	}
	return c
}