Example #1
0
// 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
}
Example #2
0
// 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
}
Example #3
0
// 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
}