skip getting keys if memcache not connected
Merge pull request #1329 from sillydong/1.6

skip getting keys if memcache not connected