MDL-39840 add sample environment check for memcache store