Added timeoutms parameter in MemCache

Added the timeoutms parameter in MemCache which takes precedence over timeout.
Also lowered the default values of both parameters to 2s.