Updated MemCache

Added early return in getMemcache function.