add ability to set timeout when instantiating memcache server

In our test environment we are confronted with timeout problems when using memcache server with default timeout of 1 second. Our continious builds are failing because of that.
So we want to increase the timeout of memcache server by configuration.