Local memcache environ setting

@chaselee please review.