providing option to connect to memcache at general connect time