validate memcache in constructor