improve keys/keyscount performance if the pattern's last char is '*'
improve keys/keyscount performance if the pattern's last char is '*'

cloudrain21/ardb,wfxiang08/ardb,bssrdf/ardb,placrosse/ardb,yinqiwen/ardb,spitfire2/ardb,lsm/ardb,tempbottle/ardb,placrosse/ardb,lsm/ardb,spitfire2/ardb,cloudrain21/ardb,wfxiang08/ardb,tempbottle/ardb,bssrdf/ardb,yinqiwen/ardb