Environment if statement added to MemcachedService