// 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 }
// 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 }
// 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 }