connect to memcache only in development mode