Local memcache environment setting

@chaselee please review.