Added timeoutms and failureCallback parameters in Memcache, reduced default timeout to 1s

Added the timeoutms parameter in MemCache which takes precedence over timeout.
Added failureCallback callable function.
Also lowered the default timeout value to 1000ms.