check memcache for query